Skip to content

Commit 2bc61b4

Browse files
committed
Parenthesize double-division for clarity
1 parent 231cb1f commit 2bc61b4

File tree

1 file changed

+1
-1
lines changed
  • ports/mimxrt10xx/common-hal/busio

1 file changed

+1
-1
lines changed

ports/mimxrt10xx/common-hal/busio/SPI.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ bool common_hal_busio_spi_configure(busio_spi_obj_t *self,
255255
// The between-transfer-delay must be equal to the SCK low-time.
256256
// Setting it lower introduces runt pulses, while setting it higher
257257
// wastes time.
258-
config.betweenTransferDelayInNanoSec = 1000000000 / config.baudRate / 2;
258+
config.betweenTransferDelayInNanoSec = (1000000000 / config.baudRate) / 2;
259259

260260
LPSPI_Deinit(self->spi);
261261
LPSPI_MasterInit(self->spi, &config, LPSPI_MASTER_CLK_FREQ);

0 commit comments

Comments
 (0)