0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 11:03:48 +01:00

use correct lua not equal

This commit is contained in:
Simon Voordouw 2017-06-13 11:10:50 +02:00
parent 5607ab96ad
commit fbb536f4ad

View File

@ -218,13 +218,13 @@ function M.fetch_POST(request, response)
local gcodeFiles = " " local gcodeFiles = " "
local startCode = request:get("start_code") local startCode = request:get("start_code")
if startCode != nil then if not startCode then
gcodeFiles = gcodeFiles .. '/tmp/startcode ' gcodeFiles = gcodeFiles .. '/tmp/startcode '
io.open('/tmp/startcode', 'w+').write(startCode) io.open('/tmp/startcode', 'w+').write(startCode)
end end
local endCode = request:get("end_code") local endCode = request:get("end_code")
if endCode != nil then if not endCode then
gcodeFiles = gcodeFiles .. '/tmp/endcode ' gcodeFiles = gcodeFiles .. '/tmp/endcode '
io.open('/tmp/endcode', 'w+').write(endCode) io.open('/tmp/endcode', 'w+').write(endCode)
end end