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

Function flasherCommandTimeout

ESP32_AP-Flasher/src/usbflasher.cpp:663–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661uint32_t lastCmdTimeStamp = 0;
662#define USBFLASHER_CONNECTION_TIMEOUT 5000
663void flasherCommandTimeout() {
664 // this is triggered if no command has been received for a couple of seconds; this makes sure everything is cleaned up when the USB connection is lost
665 if (zbsflasherp != nullptr) {
666 delete zbsflasherp;
667 zbsflasherp = nullptr;
668 }
669 if (nrfflasherp != nullptr) {
670 delete nrfflasherp;
671 nrfflasherp = nullptr;
672 }
673 if (ccflasherp != nullptr) {
674 delete ccflasherp;
675 ccflasherp = nullptr;
676 }
677 lastCmdTimeStamp = 0;
678}
679
680void tagDebugPassthrough() {
681 // static String accumulatedData = "";

Callers 1

usbFlasherTaskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected