1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00
OpenTX custom firmware for Transmitters
Find a file
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
cmake Avoids generating all bitmaps one time per CPU during compilation 2016-03-27 10:46:19 +02:00
companion Channel range fix 2016-03-30 20:27:59 +04:00
doc M2560 PPM_IN correction + bootloader source 2015-10-21 17:47:13 +02:00
jenkins nightly-22 updated 2016-01-04 22:34:23 +01:00
radio Check sizes of eeprom struct sizes at compile time 2016-04-04 10:20:58 +02:00
sound Corrected bug that caused uneven data length for 16-bit wav files (big no, no). Added speed increase for recorded sound. 2014-03-25 15:46:29 +01:00
.gitignore Ignore list updated 2015-12-23 09:11:56 +01:00
.travis.yml Fix travis (clang 3.8 -> 3.9) 2016-03-29 15:17:01 +02:00
CMakeLists.txt Make simulator sound functional again in OS X (and probably Linux) 2016-03-29 22:13:18 +02:00
compile.bat We won't start the bad simulator 2016-03-25 22:48:00 +01:00
CREDITS.txt Contributors / Release notes dialogs refactoring 2015-07-08 19:42:18 +02:00
DONATIONS.txt Update DONATIONS.txt 2015-11-15 10:03:54 +01:00
GPLv2.txt Companion build on Linux 2013-12-02 18:47:43 +01:00
README.md Update README.md 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.