updated max frame size in base serial interface to match upstream meshcore; fix getbatterypercent in abstractuitask; update renderbatteryindicator et al in uitask; change lock screen refresh to 1 min for td pro and 2 min to t5s3; fix issue in t5s3 where it was still showing lock screen in hibernating mode'; fixed cardkb bug caused by t-echo lite wip work

This commit is contained in:
pelgraine
2026-04-30 00:20:00 +10:00
parent 26d54074c8
commit 64afdb2829
6 changed files with 72 additions and 24 deletions
+17 -15
View File
@@ -906,24 +906,26 @@
static CardKBKeyboard cardkb;
static unsigned long lastCardKBProbe = 0;
#define CARDKB_PROBE_INTERVAL_MS 5000
// CardKB compose mode state
static bool ckbComposeMode = false;
static char ckbComposeBuf[138]; // 137 bytes max + null
static int ckbComposePos = 0;
static uint8_t ckbComposeChIdx = 0;
static bool ckbComposeDM = false;
static int ckbComposeDMIdx = -1;
static char ckbComposeDMName[32];
static unsigned long ckbLastKeystroke = 0;
static bool ckbComposeRefresh = false;
#define CKB_COMPOSE_DEBOUNCE 600
void drawCardKBCompose();
void sendCardKBMessage();
#endif
#endif
// CardKB compose mode state — standalone so ANY variant with MECK_CARDKB gets these
#ifdef MECK_CARDKB
static bool ckbComposeMode = false;
static char ckbComposeBuf[138]; // 137 bytes max + null
static int ckbComposePos = 0;
static uint8_t ckbComposeChIdx = 0;
static bool ckbComposeDM = false;
static int ckbComposeDMIdx = -1;
static char ckbComposeDMName[32];
static unsigned long ckbLastKeystroke = 0;
static bool ckbComposeRefresh = false;
#define CKB_COMPOSE_DEBOUNCE 600
void drawCardKBCompose();
void sendCardKBMessage();
#endif
// Board-agnostic: CPU frequency scaling and AGC reset
CPUPowerManager cpuPower;
#define AGC_RESET_INTERVAL_MS 500