mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-02-11 07:03:07 +01:00
Fix warning GwSpiSensor.h
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user