Make debug more usable, also omit CRC from packets
This commit is contained in:
parent
af90e5646d
commit
384a72af81
|
@ -168,7 +168,7 @@ void getsp(void) {
|
||||||
void m_time_details(int select) {
|
void m_time_details(int select) {
|
||||||
getInputWaitRelease();
|
getInputWaitRelease();
|
||||||
|
|
||||||
while(getInputWaitTimeout(50) != BTN_LEFT){
|
while(getInputWaitTimeout(50) == BTN_NONE){
|
||||||
lcdClear();
|
lcdClear();
|
||||||
MPKT *mpkt = &meshbuffer[select];
|
MPKT *mpkt = &meshbuffer[select];
|
||||||
uint8_t *pkt = mpkt->pkt;
|
uint8_t *pkt = mpkt->pkt;
|
||||||
|
@ -193,7 +193,7 @@ void m_time_details(int select) {
|
||||||
lcdNl();
|
lcdNl();
|
||||||
|
|
||||||
int x = 0;
|
int x = 0;
|
||||||
for(uint8_t *body = MO_BODY(pkt); body < pkt + 32; body++) {
|
for(uint8_t *body = MO_BODY(pkt); body < (pkt + 30); body++) {
|
||||||
if (*body >= ' ' && *body < 128) {
|
if (*body >= ' ' && *body < 128) {
|
||||||
if (x > 12) {
|
if (x > 12) {
|
||||||
lcdNl();
|
lcdNl();
|
||||||
|
@ -276,23 +276,23 @@ void m_time(void){
|
||||||
lcdNl();
|
lcdNl();
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
|
|
||||||
uint8_t key = getInputWaitTimeout(50);
|
uint8_t key = getInputWaitTimeout(100);
|
||||||
switch(key) {
|
switch(key) {
|
||||||
case BTN_UP:
|
case BTN_LEFT:
|
||||||
select--;
|
select--;
|
||||||
if (select < 0)
|
if (select < 0)
|
||||||
select = MESHBUFSIZE - 1;
|
select = MESHBUFSIZE - 1;
|
||||||
break;
|
break;
|
||||||
case BTN_DOWN:
|
case BTN_RIGHT:
|
||||||
select++;
|
select++;
|
||||||
if (select >= MESHBUFSIZE)
|
if (select >= MESHBUFSIZE)
|
||||||
select = 0;
|
select = 0;
|
||||||
break;
|
break;
|
||||||
case BTN_RIGHT:
|
|
||||||
case BTN_ENTER:
|
case BTN_ENTER:
|
||||||
m_time_details(select);
|
m_time_details(select);
|
||||||
break;
|
break;
|
||||||
case BTN_LEFT:
|
case BTN_UP:
|
||||||
|
case BTN_DOWN:
|
||||||
// Exit
|
// Exit
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue