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:
parent
a94167ceca
commit
7da2b05af8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user