improved responsiveness and cursor tracking in notes function. updated firmware version in mymesh.

This commit is contained in:
pelgraine
2026-02-12 20:32:21 +11:00
parent 220006c229
commit 5b868d51ca
4 changed files with 25 additions and 8 deletions
+2 -2
View File
@@ -8,11 +8,11 @@
#define FIRMWARE_VER_CODE 8
#ifndef FIRMWARE_BUILD_DATE
#define FIRMWARE_BUILD_DATE "11 Feb 2026"
#define FIRMWARE_BUILD_DATE "12 Feb 2026"
#endif
#ifndef FIRMWARE_VERSION
#define FIRMWARE_VERSION "Meck v0.8.4"
#define FIRMWARE_VERSION "Meck v0.8.5"
#endif
#if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM)
+1 -1
View File
@@ -26,7 +26,7 @@
static uint8_t composeChannelIdx = 0;
static unsigned long lastComposeRefresh = 0;
static bool composeNeedsRefresh = false;
#define COMPOSE_REFRESH_INTERVAL 600 // ms between e-ink refreshes while typing (refresh takes ~650ms)
#define COMPOSE_REFRESH_INTERVAL 100 // ms before starting e-ink refresh after keypress (refresh itself takes ~644ms)
// DM compose mode (direct message to a specific contact)
static bool composeDM = false;
@@ -747,8 +747,11 @@ private:
display.setColor(DisplayDriver::YELLOW);
display.setCursor(0, footerY);
char status[40];
snprintf(status, sizeof(status), "%d/%d", _bufLen, NOTES_BUF_SIZE - 1);
char status[20];
int cursorLine = lineForPos(_cursorPos);
int curPage = (_editMaxLines > 0) ? (cursorLine / _editMaxLines) + 1 : 1;
int totalPg = (_editMaxLines > 0) ? max(1, (_numEditorLines + _editMaxLines - 1) / _editMaxLines) : 1;
snprintf(status, sizeof(status), "Pg %d/%d", curPage, totalPg);
display.print(status);
const char* right;