Merge pull request #127 from feelfree69/resetbutton

Add button handling with the possibility to revert to default settings
This commit is contained in:
logicog authored and GitHub committed 2026-02-23 21:01:14 +01:00
commit 284b2b003d
7 files changed
+170 -93

No files matched your search

+1 -4
View File
@@ -14,9 +14,6 @@
#define SESSION_ID_LENGTH 12
#define SESSION_TIMEOUT 200
// Upload Firmware to 1M
#define FIRMWARE_UPLOAD_START 0x100000
// SPI FLASH MEMORY PAGE SIZE.
#define FLASHMEM_PAGE_SIZE 0x100
@@ -32,7 +29,7 @@ extern __code char * __code mime_strings[];
extern __xdata struct flash_region_t flash_region;
// Flash buffer to optimize flash writing speed, write_len is the current filling position
extern __xdata uint8_t flash_buf[512];
extern __xdata uint8_t flash_buf[FLASH_BUF_SIZE];
__xdata uint32_t uptr; // Current flash write position
__xdata uint16_t write_len;