Skip to content

Commit bd11b73

Browse files
committed
Fix timeout with firmware 3.1.0
1 parent 8813bc4 commit bd11b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pslab/bus/spi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _set_parameters(
175175
self._device.send_byte(CP.SET_SPI_PARAMETERS)
176176
# 0Bhgfedcba - > <g>: modebit CKP,<f>: modebit CKE, <ed>:primary prescaler,
177177
# <cba>:secondary prescaler
178-
self._device.send_byte(
178+
self._device.send_int(
179179
secondary_prescaler
180180
| (primary_prescaler << 3)
181181
| (CKE << 5)

0 commit comments

Comments
 (0)