1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 01:05:10 +03:00

Improve r9m power handling (#5950)

* Rework around reusable buffer

* small fix

* Rework 212 & 480 handling too

* Optimize

* Compilation fix
This commit is contained in:
3djc 2018-06-06 17:07:27 +02:00 committed by Bertrand Songis
parent 9ffcac744a
commit 45804b318a
5 changed files with 53 additions and 41 deletions

View file

@ -1471,7 +1471,7 @@ void opentxResume();
#endif
union ReusableBuffer
{
// 275 bytes
// ARM 334 bytes
struct
{
#if !defined(CPUARM)
@ -1488,9 +1488,12 @@ union ReusableBuffer
#endif
} modelsel;
// 65 bytes
struct {
char msg[64];
} msgbuf; // used in modelsel and modelsetup (only in a warning message)
uint8_t r9mPower;
} modelsetup;
// 103 bytes
struct