Only panic once

This commit is contained in:
Stefan `Sec` Zehl 2012-01-03 02:48:39 +01:00
parent b64b48d777
commit 8d0de435dc
1 changed files with 17 additions and 13 deletions

View File

@ -96,20 +96,24 @@ 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
setSystemFont(); if(!done){
lcdClear(); setSystemFont();
lcdPrint("PANIC["); lcdClear();
lcdPrint(IntToStrX(bufno,2)); lcdPrint("PANIC[");
lcdPrint("]"); lcdPrint(IntToStrX(bufno,2));
lcdNl(); lcdPrint("]");
for(int i=0;i<32;i++){ lcdNl();
lcdPrint(IntToStrX(pkt[i],2)); for(int i=0;i<32;i++){
if(i%6==5) lcdPrint(IntToStrX(pkt[i],2));
lcdNl(); if(i%6==5)
} lcdNl();
lcdRefresh(); }
while ((getInputRaw())==BTN_NONE); lcdRefresh();
while ((getInputRaw())==BTN_NONE);
};
done=1;
#endif #endif
}; };