From c60c61820453a50557f21f79e2d6196be7ff7050 Mon Sep 17 00:00:00 2001 From: Luca Gugelmann <69755789+lgugelmann@users.noreply.github.com> Date: Sun, 19 Sep 2021 23:19:20 +0200 Subject: [PATCH] Fix SPIDevice::write_byte16 to actually take a 16 bit argument (#2345) --- esphome/components/spi/spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/spi/spi.h b/esphome/components/spi/spi.h index a4a2e11def..eb8f9ce7ce 100644 --- a/esphome/components/spi/spi.h +++ b/esphome/components/spi/spi.h @@ -246,7 +246,7 @@ class SPIDevice { return this->parent_->template write_byte(data); } - void write_byte16(uint8_t data) { + void write_byte16(uint16_t data) { return this->parent_->template write_byte16(data); }