0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-11-17 02:57:56 +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 startCode = request:get("start_code")
if startCode != nil then
if not startCode then
gcodeFiles = gcodeFiles .. '/tmp/startcode '
io.open('/tmp/startcode', 'w+').write(startCode)
end
local endCode = request:get("end_code")
if endCode != nil then
if not endCode then
gcodeFiles = gcodeFiles .. '/tmp/endcode '
io.open('/tmp/endcode', 'w+').write(endCode)
end