[spid] uart tx does not generate a msg.parsed
This commit is contained in:
parent
3f0b37fbee
commit
ac124ece24
|
@ -155,7 +155,7 @@ function tx(msg, cdev)
|
||||||
end
|
end
|
||||||
|
|
||||||
function wait(msg, short, long)
|
function wait(msg, short, long)
|
||||||
if msg.parsed.cmd and msg.parsed.cmd == 'ct' then
|
if msg.parsed and msg.parsed.cmd and msg.parsed.cmd == 'ct' then
|
||||||
nixio.nanosleep(0, long)
|
nixio.nanosleep(0, long)
|
||||||
else
|
else
|
||||||
nixio.nanosleep(0, short)
|
nixio.nanosleep(0, short)
|
||||||
|
|
Loading…
Reference in New Issue