Fix warning GwSpiSensor.h

This commit is contained in:
rowa-hooge 2025-01-02 10:59:57 +01:00 committed by wellenvogel
parent c5cadce268
commit b640d1adda
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ class SSISensor : public SensorTemplate<BUSTYPE,SensorBase::SPI>{
.flags = SPI_TRANS_USE_RXDATA, .flags = SPI_TRANS_USE_RXDATA,
.cmd = 0, .cmd = 0,
.addr = 0, .addr = 0,
.length = bits+1, .length = (size_t)bits+1,
.rxlength = 0}; .rxlength = 0};
esp_err_t ret = spi_device_queue_trans(device->device(), &ta, portMAX_DELAY); esp_err_t ret = spi_device_queue_trans(device->device(), &ta, portMAX_DELAY);
if (ret != ESP_OK) return ret; if (ret != ESP_OK) return ret;