fix: correct logic for checking display busy state
This commit is contained in:
@@ -409,7 +409,7 @@ void EInkDisplayHandler::request_full_refresh(void) {
|
||||
|
||||
// Check if display is busy (refreshing)
|
||||
bool EInkDisplayHandler::is_busy(void) const {
|
||||
return gpio_get_level(PIN_BUSY) == BUSY_ACTIVE_LEVEL; // BUSY is active LOW
|
||||
return gpio_get_level(PIN_BUSY) != BUSY_ACTIVE_LEVEL; // BUSY is active LOW
|
||||
}
|
||||
void EInkDisplayHandler::wait_for_idle(void) const {
|
||||
ESP_LOGI(TAG, "Waiting for display ready (BUSY pin)...");
|
||||
|
||||
Reference in New Issue
Block a user