mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 09:04:24 +01:00
- adds tag serial debug in webflasher and power up/down buttons - fixes bug where esp32-s3 connected via usb cdc slows down when no terminal connection is present - fix: ghost tags reporting a different channel id than the AP are now ignored - webflasher now ramps up/down power to prevent spikes - bugfix: C6 doesn't get reset anoymore by the watchdog during flashing - bugfix: C6 could go in flash mode unintended - a failed connection during swd write blocks is now reported back instead of silently ignored - added 4 areas of Sweden to day ahead price content - new context menu option 'Delete all inactive tags' (only when right clicking on an inactive tag). - adjusted some timings
32 lines
693 B
C++
32 lines
693 B
C++
#include <Arduino.h>
|
|
|
|
#ifdef HAS_EXT_FLASHER
|
|
|
|
#include "web.h"
|
|
|
|
#define WEBFLASH_ENABLE_AUTOFLASH 1
|
|
#define WEBFLASH_ENABLE_USBFLASHER 2
|
|
#define WEBFLASH_FOCUS 3
|
|
#define WEBFLASH_BLUR 4
|
|
#define WEBFLASH_POWER_ON 5
|
|
#define WEBFLASH_POWER_OFF 6
|
|
|
|
class Logger : public Print {
|
|
public:
|
|
Logger();
|
|
|
|
~Logger();
|
|
|
|
size_t write(uint8_t c) override;
|
|
size_t write(const uint8_t* buffer, size_t size) override;
|
|
size_t printf(const char* format, ...);
|
|
size_t println(const char* text);
|
|
|
|
private:
|
|
};
|
|
|
|
void webFlasherTask(void* parameter);
|
|
void handleWSdata(uint8_t* data, size_t len, AsyncWebSocketClient* client);
|
|
void sendDataToClient(const uint8_t* data, size_t len);
|
|
|
|
#endif |