Skip to content

Commit 5b50386

Browse files
committed
Try a little harder by default as well.
1 parent 66f0a0b commit 5b50386

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

aspSUB20.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232

3333

3434
# SPI control
35-
MAX_SPI_RETRY = 2
36-
WAIT_SPI_RETRY = 0.2
35+
MAX_SPI_RETRY = 4
36+
WAIT_SPI_RETRY = 0.25
3737

3838
# SPI constants
3939
SPI_cfg_normal = 0x0104
@@ -89,12 +89,12 @@
8989
SPI_NoOp = 0x0000
9090

9191
# I2C control
92-
MAX_I2C_RETRY = 2
93-
WAIT_I2C_RETRY = 0.2
92+
MAX_I2C_RETRY = 4
93+
WAIT_I2C_RETRY = 0.25
9494

9595
# RS485 control
96-
MAX_RS485_RETRY = 2
97-
WAIT_RS485_RETRY = 0.2
96+
MAX_RS485_RETRY = 4
97+
WAIT_RS485_RETRY = 0.25
9898

9999

100100
def _sleep(interval, margin_percent=5):

0 commit comments

Comments
 (0)