mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
Checking appendGcode time in lua
This commit is contained in:
parent
84260a7493
commit
c0c85bab44
@ -228,7 +228,11 @@ function M.print_POST(request, response)
|
|||||||
local rv,msg
|
local rv,msg
|
||||||
|
|
||||||
-- TODO: return errors with a separate argument like here in the rest of the code (this is how we designed the API right?)
|
-- TODO: return errors with a separate argument like here in the rest of the code (this is how we designed the API right?)
|
||||||
|
local startTime = os.clock()
|
||||||
rv,msg = printer:appendGcode(argGcode)
|
rv,msg = printer:appendGcode(argGcode)
|
||||||
|
local duration = os.clock()-startTime
|
||||||
|
log:debug(" duration: "..utils.dump(duration))
|
||||||
|
|
||||||
if rv then
|
if rv then
|
||||||
--NOTE: this does not report the number of lines, but only the block which has just been added
|
--NOTE: this does not report the number of lines, but only the block which has just been added
|
||||||
response:addData('gcode_append',argGcode:len())
|
response:addData('gcode_append',argGcode:len())
|
||||||
|
Loading…
Reference in New Issue
Block a user