We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66f0a0b commit 5b50386Copy full SHA for 5b50386
aspSUB20.py
@@ -32,8 +32,8 @@
32
33
34
# SPI control
35
-MAX_SPI_RETRY = 2
36
-WAIT_SPI_RETRY = 0.2
+MAX_SPI_RETRY = 4
+WAIT_SPI_RETRY = 0.25
37
38
# SPI constants
39
SPI_cfg_normal = 0x0104
@@ -89,12 +89,12 @@
89
SPI_NoOp = 0x0000
90
91
# I2C control
92
-MAX_I2C_RETRY = 2
93
-WAIT_I2C_RETRY = 0.2
+MAX_I2C_RETRY = 4
+WAIT_I2C_RETRY = 0.25
94
95
# RS485 control
96
-MAX_RS485_RETRY = 2
97
-WAIT_RS485_RETRY = 0.2
+MAX_RS485_RETRY = 4
+WAIT_RS485_RETRY = 0.25
98
99
100
def _sleep(interval, margin_percent=5):
0 commit comments