Made TRACE a bit less talkative.

This commit is contained in:
Fabian Schlenz 2019-11-29 21:18:28 +01:00
parent 9175193b67
commit 4eef69516e
1 changed files with 1 additions and 7 deletions

View File

@ -36,7 +36,6 @@ void Controller::register_http_server(HTTPServer* h) {
}
void Controller::loop() {
TRACE("Controller::loop()...\n");
unsigned long now = millis();
if ((_last_rfid_scan_at < now - RFID_SCAN_INTERVAL) || (now < _last_rfid_scan_at)) {
_check_rfid();
@ -66,7 +65,6 @@ void Controller::loop() {
} else {
_last_wifi_try_at = now;
}
TRACE("Controller::loop() done.\n");
}
uint32_t Controller::_get_rfid_card_uid() {
@ -85,7 +83,7 @@ uint32_t Controller::_get_rfid_card_uid() {
}
void Controller::_check_rfid() {
TRACE("check_rfid running...\n");
//TRACE("check_rfid running...\n");
MFRC522::StatusCode status;
if (_rfid_present) {
byte buffer[2];
@ -244,8 +242,6 @@ String Controller::_read_rfid_data() {
}
void Controller::_check_serial() {
TRACE("check_serial running...\n");
if (Serial.available() > 0) {
char c = Serial.read();
Serial.printf("%c", c);
@ -332,8 +328,6 @@ void Controller::_execute_command_help() {
}
void Controller::_check_buttons() {
TRACE("check_buttons running...\n");
if (BTN_PREV() && _debounce_button(0)) {
if (_state == NORMAL) {
player->track_prev();