Browse Source

remove logs and reduce bootup time

master
Schoenberger, Philipp 6 years ago
parent
commit
1ce848b5d3
No known key found for this signature in database GPG Key ID: 77E9DF7A0452BF64
  1. 8
      remote/src/state_fly.cpp
  2. 2
      remote/src/state_init.cpp

8
remote/src/state_fly.cpp

@ -217,8 +217,6 @@ void LCD_state_fly::update(void)
akku_remote = 0; akku_remote = 0;
this->print_akku_remote(akku_remote); this->print_akku_remote(akku_remote);
break; break;
case 50:
//print_frskyd_telemetry();
default: default:
break; break;
@ -232,8 +230,10 @@ void LCD_state_fly::update(void)
uint32_t wait = next_callback_time; uint32_t wait = next_callback_time;
wait -= (end__ - start); wait -= (end__ - start);
delayMicroseconds(wait); delayMicroseconds(wait);
if((end__ - start) > 1000 )
debug("call %d waited %lu timed %lu vs wait %lu \n", call,next_callback_time, wait, (end__ - start));
/* if((end__ - start) > 1000 ) { */
/* debug("call %d waited %lu timed %lu vs wait %lu \n", call,next_callback_time, wait, (end__ - start)); */
/* print_frskyd_telemetry(); */
/* } */
} }
end__ = micros(); end__ = micros();
} }

2
remote/src/state_init.cpp

@ -22,7 +22,7 @@ void LCD_state_init::update(void)
uint32_t diff; uint32_t diff;
delay(100); delay(100);
diff = millis() - this->time_enter; diff = millis() - this->time_enter;
if (diff > 5 * 1000) {
if (diff > 3 * 1000) {
new_state = s_joy; new_state = s_joy;
debugln("read start"); debugln("read start");
delay(1000); delay(1000);

Loading…
Cancel
Save