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:
parent
9ffcac744a
commit
45804b318a
5 changed files with 53 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue