[fluksod] put an advisory lock on spidev
This commit is contained in:
parent
2fa9a53766
commit
0ff4f20cfc
|
@ -67,6 +67,7 @@ local fds = { uart, ctrl, delta }
|
|||
|
||||
local spidev = nixio.open(SPI_DEV, O_RDWR_NONBLOCK)
|
||||
nixio.spi.setspeed(spidev, SPI_MAX_CLK_SPEED_HZ, SPI_MIN_BYTE_DELAY_US)
|
||||
spidev:lock('lock')
|
||||
|
||||
while true do
|
||||
local msg
|
||||
|
|
Loading…
Reference in New Issue