diff --git a/mote/v2/openwrt/package/flukso/luasrc/spid.lua b/mote/v2/openwrt/package/flukso/luasrc/spid.lua index d9b0745..91895c9 100755 --- a/mote/v2/openwrt/package/flukso/luasrc/spid.lua +++ b/mote/v2/openwrt/package/flukso/luasrc/spid.lua @@ -31,9 +31,10 @@ local arg = arg or {} -- needed when this code is not loaded via the interpreter local DEBUG = (arg[1] == '-d') local SPI_DEV = '/dev/spidev0.0' -local SPI_MAX_CLK_SPEED_HZ = 10e6 +local SPI_MAX_CLK_SPEED_HZ = 1e6 local SPI_MIN_BYTE_DELAY_US = 250 -local SPI_TX_RX_DELAY_NS = 10e7 +local SPI_TX_RX_DELAY_NS = 1e7 +local SPI_CT_DELAY_NS = 5e8 local POLL_TIMEOUT_MS = 100 local TIMERFD_ENABLE = 1