A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
fix isr init for stickcplus2
Geo826ec87a6960
diff --git a/src/Services/UartService.cpp b/src/Services/UartService.cppindex 097cd385..4388311e 100644--- a/src/Services/UartService.cpp+++ b/src/Services/UartService.cpp@@ -311,6 +311,13 @@ UartService::PinActivity UartService::measureUartActivity(uint8_t pin, uint32_tlastEdgeTimeUs = 0;intervalCount = 0;+ #ifdef DEVICE_M5STICK+ if (!isrInited) {+ gpio_install_isr_service(0);+ isrInited = true;+ }+ #endif+// Configure GPIOgpio_config_t io = {};io.intr_type = GPIO_INTR_ANYEDGE;diff --git a/src/Services/UartService.h b/src/Services/UartService.hindex 43b9211c..1a1b7a6f 100644--- a/src/Services/UartService.h+++ b/src/Services/UartService.h@@ -61,6 +61,7 @@ private:static File* currentFile;int32_t xmodemBlockSize = 128;int8_t xmodemIdSize = 1;+ bool isrInited = false;XModem::ProtocolType xmodemProtocol = XModem::ProtocolType::CRC_XMODEM;static void IRAM_ATTR onGpioEdge(void* arg);