pjalocha / esp32-ogn-tracker

OGN Tracker implementation on ESP32 devices
56 stars 27 forks source link

compile error misleading-indentation #54

Open sanyatuning opened 11 months ago

sanyatuning commented 11 months ago

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

sanyatuning commented 11 months ago

example: main/ldpc.cpp:671:

if(Count&1) ParByte|=Mask; Mask<<=1;