complete test for Factory Recovery
This commit is contained in:
parent
70fc6aeba8
commit
76d5c362d0
@ -24,10 +24,10 @@
|
|||||||
//==============================================================================
|
//==============================================================================
|
||||||
//Depending on the type of LCD mounted on the uBITX, uncomment one of the options below.
|
//Depending on the type of LCD mounted on the uBITX, uncomment one of the options below.
|
||||||
//You must select only one.
|
//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 //I2C type 16 x 02 LCD
|
||||||
//#define UBITX_DISPLAY_LCD1602I_DUAL
|
//#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 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
|
#define I2C_LCD_MASTER_ADDRESS_DEFAULT 0x3F //0x27 //DEFAULT, if Set I2C Address by uBITX Manager, read from EEProm
|
||||||
|
@ -1230,8 +1230,11 @@ void factory_Recovery()
|
|||||||
{
|
{
|
||||||
if (EEPROM.read(FACTORY_BACKUP_YN) != 0x13)
|
if (EEPROM.read(FACTORY_BACKUP_YN) != 0x13)
|
||||||
return;
|
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);
|
delay(2000);
|
||||||
if (!btnDown())
|
if (!btnDown())
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user