mirror of
https://github.com/pelgraine/Meck.git
synced 2026-07-05 09:11:20 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user