[spid] uart tx does not generate a msg.parsed

This commit is contained in:
Bart Van Der Meerssche 2011-05-10 11:11:20 +02:00
parent 3f0b37fbee
commit ac124ece24
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ function tx(msg, cdev)
end
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)
else
nixio.nanosleep(0, short)