-
Notifications
You must be signed in to change notification settings - Fork 18
Description
I have problem...what is this solution?
I don't believe that "if" shold be wrong place in ldpc.ccp file...
Matti
error codes after make flash:
matti@matti-Latitude-E6420:~/esp/esp32-ogn-tracker$ make flash
Toolchain path: /home/matti/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: esp32-2019r1
Compiler version: 8.2.0
Python requirements from /home/matti/esp/esp-idf/requirements.txt are satisfied.
App "app-template" version: 88b0918-dirty
CXX build/main/ldpc.o
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp: In function 'void LDPC_Encode(const uint8_t*, uint8_t*, const uint32_t ()[5])':
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:671:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
if(Count&1) ParByte|=Mask; Mask<<=1;
^~
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:671:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(Count&1) ParByte|=Mask; Mask<<=1;
^~~~
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp: In function 'void LDPC_Encode(const uint32_t, uint32_t*, uint8_t, uint8_t, const uint32_t*)':
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:692:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
if(Count&1) Parity[ParIdx]|=Mask; Mask<<=1;
^~
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:692:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(Count&1) Parity[ParIdx]|=Mask; Mask<<=1;
^~~~
cc1plus: some warnings being treated as errors
/home/matti/esp/esp-idf/make/component_wrapper.mk:289: recipe for target 'ldpc.o' failed
make[1]: *** [ldpc.o] Error 1
/home/matti/esp/esp-idf/make/project.mk:582: recipe for target 'component-main-build' failed
make: *** [component-main-build] Error 2