A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
mux protect get icmp status to properly close task when user hits enter
Geo32d3fe739b44
diff --git a/src/Services/ICMPService.cpp b/src/Services/ICMPService.cppindex 16bfe0bd..abdb6a3f 100644--- a/src/Services/ICMPService.cpp+++ b/src/Services/ICMPService.cpp@@ -329,6 +329,14 @@ void ICMPService::pushICMPLog(const std::string& line) {portEXIT_CRITICAL(&icmpMux);}+bool ICMPService::getICMPServiceStatus() {+ bool v;+ portENTER_CRITICAL(&ICMPService::icmpMux);+ v = ICMPService::stopICMPFlag;+ portEXIT_CRITICAL(&ICMPService::icmpMux);+ return v;+}+std::vector<std::string> ICMPService::fetchICMPLog() {std::vector<std::string> batch;portENTER_CRITICAL(&ICMPService::icmpMux);diff --git a/src/Services/ICMPService.h b/src/Services/ICMPService.hindex 08d1fe1c..1ab720a9 100644--- a/src/Services/ICMPService.h+++ b/src/Services/ICMPService.h@@ -63,7 +63,7 @@ private:static bool stopICMPFlag;static void pushICMPLog(const std::string& line);- static bool getICMPServiceStatus() { return stopICMPFlag; }+ static bool getICMPServiceStatus();// Clears non-static variablesvoid cleanupICMPService();};