diff --git a/ESPGeiger/src/Counter/Counter.h b/ESPGeiger/src/Counter/Counter.h index 6926fc7..701d081 100644 --- a/ESPGeiger/src/Counter/Counter.h +++ b/ESPGeiger/src/Counter/Counter.h @@ -108,10 +108,12 @@ static void ICACHE_RAM_ATTR count() { static void ICACHE_RAM_ATTR handleSecondTick() { #ifdef USE_PCNT + #ifndef GEIGERTESTMODE int16_t pulseCount; pcnt_get_counter_value(PCNT_UNIT, &pulseCount); pcnt_counter_clear(PCNT_UNIT); eventCounter = pulseCount; + #endif #endif status.geigerTicks.add(eventCounter); eventCounter = 0; diff --git a/environments.ini b/environments.ini index fa14e98..1e3d36c 100644 --- a/environments.ini +++ b/environments.ini @@ -15,6 +15,18 @@ board_build.flash_mode = qio board_build.filesystem = littlefs upload_speed = 921600 +[env:lolin_s2_pico] +platform = ${com.esp32_platform} +board = lolin_s2_pico +lib_deps = + ${com-esp32.lib_deps} +build_flags = + ${com-esp.build_flags} + -DESP32 +board_build.flash_mode = qio +board_build.filesystem = littlefs +upload_speed = 921600 + [env:esp8266_main] platform = ${com.esp8266_platform} board = nodemcuv2