1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 19:32:19 +01:00

Fix SPIDevice::write_byte16 to actually take a 16 bit argument (#2345)

This commit is contained in:
Luca Gugelmann
2021-09-19 23:19:20 +02:00
committed by GitHub
parent 53bd197c44
commit c60c618204

View File

@@ -246,7 +246,7 @@ class SPIDevice {
return this->parent_->template write_byte<BIT_ORDER, CLOCK_POLARITY, CLOCK_PHASE>(data);
}
void write_byte16(uint8_t data) {
void write_byte16(uint16_t data) {
return this->parent_->template write_byte16<BIT_ORDER, CLOCK_POLARITY, CLOCK_PHASE>(data);
}