Made TRACE a bit less talkative.
This commit is contained in:
parent
9175193b67
commit
4eef69516e
@ -36,7 +36,6 @@ void Controller::register_http_server(HTTPServer* h) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Controller::loop() {
|
void Controller::loop() {
|
||||||
TRACE("Controller::loop()...\n");
|
|
||||||
unsigned long now = millis();
|
unsigned long now = millis();
|
||||||
if ((_last_rfid_scan_at < now - RFID_SCAN_INTERVAL) || (now < _last_rfid_scan_at)) {
|
if ((_last_rfid_scan_at < now - RFID_SCAN_INTERVAL) || (now < _last_rfid_scan_at)) {
|
||||||
_check_rfid();
|
_check_rfid();
|
||||||
@ -66,7 +65,6 @@ void Controller::loop() {
|
|||||||
} else {
|
} else {
|
||||||
_last_wifi_try_at = now;
|
_last_wifi_try_at = now;
|
||||||
}
|
}
|
||||||
TRACE("Controller::loop() done.\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t Controller::_get_rfid_card_uid() {
|
uint32_t Controller::_get_rfid_card_uid() {
|
||||||
@ -85,7 +83,7 @@ uint32_t Controller::_get_rfid_card_uid() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Controller::_check_rfid() {
|
void Controller::_check_rfid() {
|
||||||
TRACE("check_rfid running...\n");
|
//TRACE("check_rfid running...\n");
|
||||||
MFRC522::StatusCode status;
|
MFRC522::StatusCode status;
|
||||||
if (_rfid_present) {
|
if (_rfid_present) {
|
||||||
byte buffer[2];
|
byte buffer[2];
|
||||||
@ -244,8 +242,6 @@ String Controller::_read_rfid_data() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Controller::_check_serial() {
|
void Controller::_check_serial() {
|
||||||
TRACE("check_serial running...\n");
|
|
||||||
|
|
||||||
if (Serial.available() > 0) {
|
if (Serial.available() > 0) {
|
||||||
char c = Serial.read();
|
char c = Serial.read();
|
||||||
Serial.printf("%c", c);
|
Serial.printf("%c", c);
|
||||||
@ -332,8 +328,6 @@ void Controller::_execute_command_help() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Controller::_check_buttons() {
|
void Controller::_check_buttons() {
|
||||||
TRACE("check_buttons running...\n");
|
|
||||||
|
|
||||||
if (BTN_PREV() && _debounce_button(0)) {
|
if (BTN_PREV() && _debounce_button(0)) {
|
||||||
if (_state == NORMAL) {
|
if (_state == NORMAL) {
|
||||||
player->track_prev();
|
player->track_prev();
|
||||||
|
Loading…
Reference in New Issue
Block a user