From b640d1addab9c6c105c5f1d2692fbe1f52af0251 Mon Sep 17 00:00:00 2001 From: rowa-hooge Date: Thu, 2 Jan 2025 10:59:57 +0100 Subject: [PATCH] Fix warning GwSpiSensor.h --- lib/spitask/GwSpiSensor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spitask/GwSpiSensor.h b/lib/spitask/GwSpiSensor.h index 3491641..c12a410 100644 --- a/lib/spitask/GwSpiSensor.h +++ b/lib/spitask/GwSpiSensor.h @@ -112,7 +112,7 @@ class SSISensor : public SensorTemplate{ .flags = SPI_TRANS_USE_RXDATA, .cmd = 0, .addr = 0, - .length = bits+1, + .length = (size_t)bits+1, .rxlength = 0}; esp_err_t ret = spi_device_queue_trans(device->device(), &ta, portMAX_DELAY); if (ret != ESP_OK) return ret; @@ -138,4 +138,4 @@ class SSISensor : public SensorTemplate{ using SpiSensorList=SensorList; #define GWSPI1_HOST SPI2_HOST #define GWSPI2_HOST SPI3_HOST -#endif \ No newline at end of file +#endif