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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}