Arne Schwabe bb21c20b21 Check sizes of eeprom struct sizes at compile time
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);
2016-04-04 10:20:58 +02:00
2016-03-30 20:27:59 +04:00
2016-01-04 22:34:23 +01:00
2015-12-23 09:11:56 +01:00
2016-03-29 15:17:01 +02:00
2016-03-25 22:48:00 +01:00
2015-11-15 10:03:54 +01:00
2013-12-02 18:47:43 +01:00
2016-01-29 23:59:03 +01:00

##OpenTX 2.2 Branch

Build Status Join the chat at https://gitter.im/opentx/opentx Donate using Paypal

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.

S
Description
No description provided
Readme GPL-2.0
400 MiB
Languages
C 71.9%
C++ 25.4%
Python 0.9%
CMake 0.6%
Shell 0.3%
Other 0.7%