bb21c20b215be14eefeb23442eb6c6d3493cb4b5
Changing the size of a struct by accident lead to random the wrong data from the eeprom and can screw the eeprom up pretty bad. Better bail out if the eeprom size changes and let the developer make that an intentional choice. The template magic is there to print out the actual and expected size: /Users/arne/oss/opentx/radio/src/datastructs.h:1045:3: error: static_assert failed "struct size changed" static_assert(expectedSize == realSize, "struct size changed"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ /Users/arne/oss/opentx/radio/src/datastructs.h:1181:3: note: in instantiation of function template specialization 'check_size<TrainerData, 168, 16>' requested here CHKSIZE(TrainerData, 168);
##OpenTX 2.2 Branch
The ongoing development on 2.2.x is done in this branch.
Refer to the opentx.wiki for information about setting up the tool chains for building OpenTX and OpenTX Companion as well as other development related issues.
Languages
C
71.9%
C++
25.4%
Python
0.9%
CMake
0.6%
Shell
0.3%
Other
0.7%