feat(radio): allow disabling USB charge while the radio is running (on compatible hardware) (#7564)

Co-authored-by: 3djc <3djc@gh.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Peter Feerick <5500713+pfeerick@users.noreply.github.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
3djc
2026-08-21 20:16:55 +10:00
committed by GitHub
co-authored by 3djc Claude Opus 5 Peter Feerick Peter Feerick
parent 2baf75f3aa
commit a51946c4e2
38 changed files with 134 additions and 15 deletions
+7
View File
@@ -1169,7 +1169,14 @@ PACK(struct RadioData {
// Radio level tabs control (global settings)
NOBACKUP(uint8_t modelSelectLayout:2);
NOBACKUP(uint8_t radioThemesDisabled:1);
#if defined(USB_CHARGE_CONTROL)
// 0 = charge while USB active (default), 1 = hold the charger off while USB
// is plugged in SD/Joystick/VCP mode
NOBACKUP(uint8_t usbChargeDisabled:1);
NOBACKUP(uint8_t spare:6 SKIP);
#else
NOBACKUP(uint8_t spare:7 SKIP);
#endif
#elif LCD_W == 128
uint8_t invertLCD:1; // Invert B&W LCD display
NOBACKUP(uint8_t spare:4 SKIP);