From 4eef69516ed60c9d46c07f7c68b39725f0954e14 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Fri, 29 Nov 2019 21:18:28 +0100 Subject: [PATCH] Made TRACE a bit less talkative. --- src/controller.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/controller.cpp b/src/controller.cpp index 8a30ba4..e5b5829 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -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();