diff --git a/tw7100.cpp b/tw7100.cpp index 8695f9a..8abfd59 100644 --- a/tw7100.cpp +++ b/tw7100.cpp @@ -158,11 +158,13 @@ void tw7100Component::loop() { std::pair parsed_response = parse_response(response); if (parsed_response.first == "ERR" && parsed_response.second == "ERR") { if (powered_->state) {; - cmd_queue.push_back("ERR?"); // TODO: produces a ERR? loop on bootup if projector is turned off + ESP_LOGW(TAG, "found ERR response, pushing request to fetch full error"); + cmd_queue.push_front("ERR?"); // TODO: produces a ERR? loop on bootup if projector is turned off } else { ESP_LOGE(TAG, "got ERR while projector is off, check if PWR+LAMP is too much?"); } } else if (parsed_response.first == "ERR") { + ESP_LOGE(TAG, "found ERR report, reason is: %s", parsed_response.second.c_str()); // TODO: Handle error } else { update_sensor(parsed_response);