Only panic once
This commit is contained in:
parent
b64b48d777
commit
8d0de435dc
|
@ -96,7 +96,9 @@ MPKT * meshGetMessage(uint8_t type){
|
||||||
};
|
};
|
||||||
|
|
||||||
void meshPanic(uint8_t * pkt,int bufno){
|
void meshPanic(uint8_t * pkt,int bufno){
|
||||||
|
static int done=0;
|
||||||
#if 1
|
#if 1
|
||||||
|
if(!done){
|
||||||
setSystemFont();
|
setSystemFont();
|
||||||
lcdClear();
|
lcdClear();
|
||||||
lcdPrint("PANIC[");
|
lcdPrint("PANIC[");
|
||||||
|
@ -110,6 +112,8 @@ void meshPanic(uint8_t * pkt,int bufno){
|
||||||
}
|
}
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
while ((getInputRaw())==BTN_NONE);
|
while ((getInputRaw())==BTN_NONE);
|
||||||
|
};
|
||||||
|
done=1;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue