mirror of
https://github.com/esphome/esphome.git
synced 2026-10-01 17:00:21 +00:00
[epaper_spi] Do not yield on the final row of a T133A01 transfer phase (#17709)
This commit is contained in:
@@ -311,9 +311,12 @@ bool HOT EPaperT133A01::transfer_data() {
|
||||
this->current_data_index_ = half;
|
||||
|
||||
if (millis() - start_time > MAX_TRANSFER_TIME) {
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (half < total_rows) {
|
||||
return false;
|
||||
}
|
||||
ESP_LOGD(TAG, "CS phase done");
|
||||
this->disable();
|
||||
this->cs_pin_->digital_write(true); // deselect CS
|
||||
@@ -346,9 +349,12 @@ bool HOT EPaperT133A01::transfer_data() {
|
||||
this->current_data_index_ = half;
|
||||
|
||||
if (millis() - start_time > MAX_TRANSFER_TIME) {
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (half < total_rows * 2) {
|
||||
return false;
|
||||
}
|
||||
ESP_LOGD(TAG, "CS1 phase done");
|
||||
this->disable();
|
||||
this->cs1_pin_->digital_write(true); // deselect CS1
|
||||
|
||||
Reference in New Issue
Block a user