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

fixed SKETCH_FILE_EXTENSION bug (solves Sketch Load & Save problem)

This commit is contained in:
Rick Companje 2013-12-04 14:13:39 +01:00
parent a94167ceca
commit 7da2b05af8

View File

@ -43,7 +43,7 @@ local function createSketchList()
for item in lfs.dir(M.SKETCH_DIR) do for item in lfs.dir(M.SKETCH_DIR) do
if item ~= '.' and item ~= '..' then if item ~= '.' and item ~= '..' then
local idx = item:match('^(%d+)\.sketch$') local idx = item:match('^(%d+)\.'..SKETCH_FILE_EXTENSION..'$')
if idx and idx:len() == NUMBER_PAD_WIDTH then if idx and idx:len() == NUMBER_PAD_WIDTH then
table.insert(result, tonumber(idx)) table.insert(result, tonumber(idx))
end end