MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / report

Function report

ESP32_AP-Flasher/src/webflasher.cpp:113–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113bool report(bool result) {
114 if (result) {
115 wsSerial("<✔", "green");
116#ifdef HAS_TFT
117 tft2.setTextColor(TFT_GREEN);
118 tft2.setCursor(5, 30, 2);
119 tft2.print("v");
120 tft2.setCursor(6, 30, 2);
121 tft2.print("v");
122 vTaskDelay(100 / portTICK_PERIOD_MS);
123#endif
124 } else {
125 errors++;
126 autoFlashStep = AUTOFLASH_STEP_ABORT;
127 wsSerial("<✘", "red");
128#ifdef HAS_TFT
129 tft2.setTextColor(TFT_RED);
130 tft2.setCursor(5, 30, 2);
131 tft2.print("x");
132 tft2.setCursor(6, 30, 2);
133 tft2.print("x");
134 vTaskDelay(500 / portTICK_PERIOD_MS);
135#endif
136 }
137 return result;
138}
139
140void onDataReceived(void* arg, AsyncClient* client, void* data, size_t len) {
141 flasherDataHandler((uint8_t*)data, len, TRANSPORT_TCP);

Callers 1

webFlasherTaskFunction · 0.85

Calls 4

wsSerialFunction · 0.85
setCursorMethod · 0.80
setTextColorMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected