From b3ab91dfea93c50e1264bf9c6a7ad9d6825d032a Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Tue, 10 Jun 2025 17:10:12 +0800 Subject: [PATCH] Update factory --- examples/Factory/Factory.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Factory/Factory.ino b/examples/Factory/Factory.ino index 20d1705..c1fb1ac 100644 --- a/examples/Factory/Factory.ino +++ b/examples/Factory/Factory.ino @@ -249,7 +249,7 @@ void sleepDevice() I2C_SCL, // Radio pins -#ifdef RADIO_DIO0_PIN +#if RADIO_DIO0_PIN != -1 RADIO_DIO0_PIN, #endif #ifdef RADIO_DIO1_PIN @@ -620,7 +620,7 @@ void setup() Serial.printf("[%s]:", RADIO_TYPE_STR); Serial.print(F(" Initializing Radio ... ")); -#ifdef RADIO_TX_CW +#if defined(RADIO_TX_CW) && !defined(USING_LR1121) Serial.println("Begin Radio FSK."); int state = radio.beginFSK(); #else @@ -881,7 +881,7 @@ void loop() #endif #ifdef HAS_PMU - // loopPMU(power_key_pressed); + loopPMU(power_key_pressed); #endif button.check();