| 661 | uint32_t lastCmdTimeStamp = 0; |
| 662 | #define USBFLASHER_CONNECTION_TIMEOUT 5000 |
| 663 | void 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 | |
| 680 | void tagDebugPassthrough() { |
| 681 | // static String accumulatedData = ""; |