Re-allow invaders packet for debugging. Also: turn on LED on meshpanic.
This commit is contained in:
parent
db44512fe3
commit
56dd1d942c
|
@ -60,6 +60,7 @@ int mesh_sanity(uint8_t * pkt){
|
||||||
};
|
};
|
||||||
if(MO_TYPE(pkt)!='A' &&
|
if(MO_TYPE(pkt)!='A' &&
|
||||||
MO_TYPE(pkt)!='a' &&
|
MO_TYPE(pkt)!='a' &&
|
||||||
|
MO_TYPE(pkt)!='i' &&
|
||||||
MO_TYPE(pkt)!='B' &&
|
MO_TYPE(pkt)!='B' &&
|
||||||
MO_TYPE(pkt)!='E' &&
|
MO_TYPE(pkt)!='E' &&
|
||||||
MO_TYPE(pkt)!='F' &&
|
MO_TYPE(pkt)!='F' &&
|
||||||
|
@ -96,9 +97,10 @@ 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
|
||||||
|
static int done=0;
|
||||||
if(!done){
|
if(!done){
|
||||||
|
gpioSetValue (RB_LED0, 1-gpioGetValue(RB_LED0));
|
||||||
setSystemFont();
|
setSystemFont();
|
||||||
lcdClear();
|
lcdClear();
|
||||||
lcdPrint("PANIC[");
|
lcdPrint("PANIC[");
|
||||||
|
@ -108,6 +110,9 @@ void meshPanic(uint8_t * pkt,int bufno){
|
||||||
lcdPrint(" ");
|
lcdPrint(" ");
|
||||||
for(int i=0;i<32;i++){
|
for(int i=0;i<32;i++){
|
||||||
lcdPrint(IntToStrX(pkt[i],2));
|
lcdPrint(IntToStrX(pkt[i],2));
|
||||||
|
if(i%6==2){
|
||||||
|
lcdPrint(" ");
|
||||||
|
};
|
||||||
if(i%6==5){
|
if(i%6==5){
|
||||||
lcdNl();
|
lcdNl();
|
||||||
lcdPrint(" ");
|
lcdPrint(" ");
|
||||||
|
|
Loading…
Reference in New Issue