mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 16:38:16 +01:00
Remove unnecessary checks in Nextion component (#5578)
This commit is contained in:
parent
05a95f8ee9
commit
3d7d0d4f73
1 changed files with 1 additions and 5 deletions
|
@ -10,15 +10,11 @@ static const char *const TAG = "nextion";
|
|||
void Nextion::soft_reset() { this->send_command_("rest"); }
|
||||
|
||||
void Nextion::set_wake_up_page(uint8_t page_id) {
|
||||
if (page_id > 255) {
|
||||
ESP_LOGD(TAG, "Wake up page of bounds, range 0-255");
|
||||
return;
|
||||
}
|
||||
this->add_no_result_to_queue_with_set_internal_("wake_up_page", "wup", page_id, true);
|
||||
}
|
||||
|
||||
void Nextion::set_touch_sleep_timeout(uint16_t timeout) {
|
||||
if (timeout < 3 || timeout > 65535) {
|
||||
if (timeout < 3) {
|
||||
ESP_LOGD(TAG, "Sleep timeout out of bounds, range 3-65535");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue