[sn74hc595]: fix 'Attempted read from write-only channel' when using esp-idf framework (#12801)

This commit is contained in:
Artur
2026-01-02 04:28:10 +00:00
committed by GitHub
parent ed435241b1
commit 2841b5fe44

View File

@@ -70,7 +70,7 @@ void SN74HC595GPIOComponent::write_gpio() {
void SN74HC595SPIComponent::write_gpio() {
for (uint8_t &output_byte : std::ranges::reverse_view(this->output_bytes_)) {
this->enable();
this->transfer_byte(output_byte);
this->write_byte(output_byte);
this->disable();
}
SN74HC595Component::write_gpio();