Custom popup for receiver registration
This commit is contained in:
@@ -29,8 +29,6 @@ void eeDeleteModel( uint8_t id ) ;
|
||||
bool eeCopyModel(uint8_t dst, uint8_t src);
|
||||
void eeSwapModels(uint8_t id1, uint8_t id2);
|
||||
|
||||
#define DISPLAY_PROGRESS_BAR(x)
|
||||
|
||||
#if defined(SDCARD)
|
||||
const char * eeBackupModel(uint8_t i_fileSrc);
|
||||
const char * eeRestoreModel(uint8_t i_fileDst, char *model_name);
|
||||
|
||||
@@ -615,9 +615,6 @@ void RlcFile::writeRlc(uint8_t i_fileId, uint8_t typ, uint8_t *buf, uint16_t i_l
|
||||
m_rlc_buf = buf;
|
||||
m_rlc_len = i_len;
|
||||
m_cur_rlc_len = 0;
|
||||
#if defined (EEPROM_PROGRESS_BAR)
|
||||
m_ratio = (typ == FILE_TYP_MODEL ? 100 : 10);
|
||||
#endif
|
||||
|
||||
do {
|
||||
nextRlcWriteStep();
|
||||
@@ -742,17 +739,6 @@ void RlcFile::flush()
|
||||
ENABLE_SYNC_WRITE(false);
|
||||
}
|
||||
|
||||
#if defined (EEPROM_PROGRESS_BAR)
|
||||
void RlcFile::drawProgressBar(uint8_t x)
|
||||
{
|
||||
if (storageDirtyMsk || isWriting() || eeprom_buffer_size) {
|
||||
uint8_t len = storageDirtyMsk ? 1 : limit((uint8_t)1, (uint8_t)(7 - (m_rlc_len/m_ratio)), (uint8_t)7);
|
||||
lcdDrawFilledRect(x+1, 0, 5, FH, SOLID, ERASE);
|
||||
lcdDrawFilledRect(x+2, 7-len, 3, len);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// For conversions ...
|
||||
uint16_t eeLoadGeneralSettingsData()
|
||||
{
|
||||
|
||||
@@ -122,9 +122,6 @@ class RlcFile: public EFile
|
||||
uint8_t m_write1_byte;
|
||||
uint8_t m_write_len;
|
||||
uint8_t * m_write_buf;
|
||||
#if defined (EEPROM_PROGRESS_BAR)
|
||||
uint8_t m_ratio;
|
||||
#endif
|
||||
|
||||
public:
|
||||
|
||||
@@ -147,10 +144,6 @@ class RlcFile: public EFile
|
||||
|
||||
// read from opened file and decode rlc-coded data
|
||||
uint16_t readRlc(uint8_t *buf, uint16_t i_len);
|
||||
|
||||
#if defined (EEPROM_PROGRESS_BAR)
|
||||
void drawProgressBar(uint8_t x);
|
||||
#endif
|
||||
};
|
||||
|
||||
extern RlcFile theFile; //used for any file operation
|
||||
@@ -172,12 +165,6 @@ inline void eepromWriteProcess()
|
||||
theFile.nextWriteStep();
|
||||
}
|
||||
|
||||
#if defined (EEPROM_PROGRESS_BAR)
|
||||
#define DISPLAY_PROGRESS_BAR(x) theFile.drawProgressBar(x)
|
||||
#else
|
||||
#define DISPLAY_PROGRESS_BAR(x)
|
||||
#endif
|
||||
|
||||
bool eeCopyModel(uint8_t dst, uint8_t src);
|
||||
void eeSwapModels(uint8_t id1, uint8_t id2);
|
||||
void eeDeleteModel(uint8_t idx);
|
||||
|
||||
Reference in New Issue
Block a user