diff --git a/ubitx_20/ubitx.h b/ubitx_20/ubitx.h index 09153f1..f60095d 100644 --- a/ubitx_20/ubitx.h +++ b/ubitx_20/ubitx.h @@ -24,10 +24,10 @@ //============================================================================== //Depending on the type of LCD mounted on the uBITX, uncomment one of the options below. //You must select only one. -//#define UBITX_DISPLAY_LCD1602P //LCD mounted on unmodified uBITX +#define UBITX_DISPLAY_LCD1602P //LCD mounted on unmodified uBITX //#define UBITX_DISPLAY_LCD1602I //I2C type 16 x 02 LCD //#define UBITX_DISPLAY_LCD1602I_DUAL -#define UBITX_DISPLAY_LCD2004P //24 x 04 LCD (Parallel) +//#define UBITX_DISPLAY_LCD2004P //24 x 04 LCD (Parallel) //#define UBITX_DISPLAY_LCD2004I //I2C type 24 x 04 LCD #define I2C_LCD_MASTER_ADDRESS_DEFAULT 0x3F //0x27 //DEFAULT, if Set I2C Address by uBITX Manager, read from EEProm diff --git a/ubitx_20/ubitx_20.ino b/ubitx_20/ubitx_20.ino index 1199d97..487faf4 100644 --- a/ubitx_20/ubitx_20.ino +++ b/ubitx_20/ubitx_20.ino @@ -1230,8 +1230,11 @@ void factory_Recovery() { if (EEPROM.read(FACTORY_BACKUP_YN) != 0x13) return; - - printLineF2(F("FactoryRecovery?")); + + if (digitalRead(PTT) == 0) //Do not proceed if PTT is pressed to prevent malfunction. + return; + + printLineF2(F("Factory Recovery")); delay(2000); if (!btnDown()) return;