Enhance+flame debug
This commit is contained in:
parent
e498ab2815
commit
28375b9ed1
|
@ -27,7 +27,7 @@ void uuid(void);
|
||||||
|
|
||||||
static const struct MENU submenu_debug={ "debug", {
|
static const struct MENU submenu_debug={ "debug", {
|
||||||
{ "ChkBattery", &ChkBattery},
|
{ "ChkBattery", &ChkBattery},
|
||||||
// { "ChkFlame", &ChkFlame},
|
{ "hkFlame", &ChkFlame},
|
||||||
{ "ChkLight", &ChkLight},
|
{ "ChkLight", &ChkLight},
|
||||||
{ "MeshInfo", &m_time},
|
{ "MeshInfo", &m_time},
|
||||||
{ "Qstatus", &Qstatus},
|
{ "Qstatus", &Qstatus},
|
||||||
|
@ -118,10 +118,10 @@ void uuid(void) {
|
||||||
iap_return = iapReadSerialNumber();
|
iap_return = iapReadSerialNumber();
|
||||||
lcdClear();
|
lcdClear();
|
||||||
lcdPrintln("UUID:");
|
lcdPrintln("UUID:");
|
||||||
lcdPrintIntHex(iap_return.Result[0]); lcdNl();
|
lcdPrintln(IntToStrX(iap_return.Result[0],8));
|
||||||
lcdPrintIntHex(iap_return.Result[1]); lcdNl();
|
lcdPrintln(IntToStrX(iap_return.Result[1],8));
|
||||||
lcdPrintIntHex(iap_return.Result[2]); lcdNl();
|
lcdPrintln(IntToStrX(iap_return.Result[2],8));
|
||||||
lcdPrintIntHex(iap_return.Result[3]); lcdNl();
|
lcdPrintln(IntToStrX(iap_return.Result[3],8));
|
||||||
lcdNl();
|
lcdNl();
|
||||||
lcdPrintln("Beacon ID:");
|
lcdPrintln("Beacon ID:");
|
||||||
lcdPrintln(IntToStrX(GetUUID32(),8));
|
lcdPrintln(IntToStrX(GetUUID32(),8));
|
||||||
|
@ -228,3 +228,22 @@ void m_time(void){
|
||||||
}while ((getInputRaw())==BTN_NONE);
|
}while ((getInputRaw())==BTN_NONE);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void ChkFlame(void) {
|
||||||
|
do{
|
||||||
|
lcdClear();
|
||||||
|
lcdPrint("Enabled:");
|
||||||
|
lcdPrintln(IntToStr(flameEnabled,1,0));
|
||||||
|
|
||||||
|
lcdPrint("State:");
|
||||||
|
lcdPrintln(IntToStr(flameMode,1,0));
|
||||||
|
|
||||||
|
lcdPrint("PWMtarg:");
|
||||||
|
lcdPrintln(IntToStr(flameI2Cpwm,3,0));
|
||||||
|
|
||||||
|
lcdPrint("FTicks:");
|
||||||
|
lcdPrintln(IntToStr(flameTicks,3,0));
|
||||||
|
|
||||||
|
lcdRefresh();
|
||||||
|
delayms_queue(10);
|
||||||
|
} while ((getInputRaw())==BTN_NONE);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue