Skip to content

Commit cad52c0

Browse files
authored
Rename struct element for clarity (#2491)
***NO_CI***
1 parent 031182e commit cad52c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/PAL/Include/CPU_SPI_decl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct SPI_DEVICE_CONFIGURATION
7474
// SPI bus Configuration (full-duplex is default)
7575
SpiBusConfiguration BusConfiguration;
7676
// True = SPI data takes the form of 16-bit words otherwise 8-bit words.
77-
bool MD16bits;
77+
bool DataIs16bits;
7878
// Data order for 16 bit operation
7979
DataBitOrder DataOrder16;
8080
// Rough estimate on the time it takes to send/receive one byte (in milliseconds)

src/System.Device.Spi/sys_dev_spi_native_System_Device_Spi_SpiDevice.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ HRESULT Library_sys_dev_spi_native_System_Device_Spi_SpiDevice::NativeOpenDevice
289289
config = pThis[Library_sys_dev_spi_native_System_Device_Spi_SpiDevice::FIELD___connectionSettings].Dereference();
290290

291291
spiConfig.BusMode = SpiBusMode_master;
292+
spiConfig.DataIs16bits = false;
292293

293294
// internally SPI bus ID is zero based, so better take care of that here
294295
spiConfig.Spi_Bus = config[SpiConnectionSettings::FIELD___busId].NumericByRef().s4 - 1;

0 commit comments

Comments
 (0)