Skip to content

Commit

Permalink
complete test for Factory Recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
phdlee committed May 7, 2018
1 parent 70fc6ae commit 76d5c36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ubitx_20/ubitx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions ubitx_20/ubitx_20.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 76d5c36

Please sign in to comment.