[stock]14bytes saved
This commit is contained in:
+1
-3
@@ -859,9 +859,7 @@ void eeLoadModel(uint8_t id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pulsesStarted()) {
|
if (pulsesStarted()) {
|
||||||
checkLowEEPROM();
|
checkAll();
|
||||||
checkTHR();
|
|
||||||
checkSwitches();
|
|
||||||
resumePulses();
|
resumePulses();
|
||||||
clearKeyEvents();
|
clearKeyEvents();
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-7
@@ -941,7 +941,7 @@ void putsTelemetryValue(uint8_t x, uint8_t y, int16_t val, uint8_t unit, uint8_t
|
|||||||
val = (val * 46) / 25;
|
val = (val * 46) / 25;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
lcd_outdezAtt(x, (att & DBLSIZE ? y - FH : y), val, att & (~NO_UNIT)); // TODO we could add this test inside lcd_outdezAtt!
|
lcd_outdezAtt(x, (att & DBLSIZE ? y - FH : y), val, att & (~NO_UNIT));
|
||||||
if (~att & NO_UNIT && unit != UNIT_RAW)
|
if (~att & NO_UNIT && unit != UNIT_RAW)
|
||||||
lcd_putsiAtt(lcdLastPos/*+1*/, y, STR_VTELEMUNIT, unit, 0);
|
lcd_putsiAtt(lcdLastPos/*+1*/, y, STR_VTELEMUNIT, unit, 0);
|
||||||
}
|
}
|
||||||
@@ -1076,6 +1076,16 @@ void doSplash()
|
|||||||
#define doSplash()
|
#define doSplash()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void checkAll()
|
||||||
|
{
|
||||||
|
#if !defined(PCBARM)
|
||||||
|
checkLowEEPROM();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
checkTHR();
|
||||||
|
checkSwitches();
|
||||||
|
}
|
||||||
|
|
||||||
#if !defined(PCBARM)
|
#if !defined(PCBARM)
|
||||||
void checkLowEEPROM()
|
void checkLowEEPROM()
|
||||||
{
|
{
|
||||||
@@ -3218,12 +3228,7 @@ inline void open9xInit(OPEN9X_INIT_ARGS)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(PCBARM)
|
checkAll();
|
||||||
checkLowEEPROM();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
checkTHR();
|
|
||||||
checkSwitches();
|
|
||||||
checkAlarm();
|
checkAlarm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -682,6 +682,7 @@ void checkLowEEPROM();
|
|||||||
void checkTHR();
|
void checkTHR();
|
||||||
void checkSwitches();
|
void checkSwitches();
|
||||||
void checkAlarm();
|
void checkAlarm();
|
||||||
|
void checkAll();
|
||||||
|
|
||||||
#define ADC_VREF_TYPE 0x40 // AVCC with external capacitor at AREF pin
|
#define ADC_VREF_TYPE 0x40 // AVCC with external capacitor at AREF pin
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user