CHG: not sure if this clearCommandBuffer helps when sending usbpackages from lua scripts. Having trouble with these usbpackages in 14B code.
This commit is contained in:
@@ -78,7 +78,7 @@ end
|
|||||||
-- nil, errormessage if unsuccessfull
|
-- nil, errormessage if unsuccessfull
|
||||||
|
|
||||||
local function sendToDevice(command, ignoreresponse)
|
local function sendToDevice(command, ignoreresponse)
|
||||||
core.clearCommandBuffer()
|
--core.clearCommandBuffer(
|
||||||
local err = core.SendCommand(command:getBytes())
|
local err = core.SendCommand(command:getBytes())
|
||||||
if err then
|
if err then
|
||||||
print(err)
|
print(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user