esp32-ogn-tracker
esp32-ogn-tracker copied to clipboard
compile error misleading-indentation
There are some compile errors with platformio.
main/ognconv.h:58:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ognconv.h:67:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/parameters.h:697:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/parameters.h:700:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/parameters.h:720:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/parameters.h:834:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ldpc.cpp:671:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ldpc.cpp:692:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ognconv.cpp:102:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ognconv.cpp:173:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ognconv.cpp:189:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
Can you help to fix these? I don't sure which one is the correct: A. Fix indentation (in some places add "else" keyword) B. Add curly braces
example: main/ldpc.cpp:671:
if(Count&1) ParByte|=Mask; Mask<<=1;