MICO icon indicating copy to clipboard operation
MICO copied to clipboard

lcd.image always returns "file not found"

Open davidppoole opened this issue 8 years ago • 1 comments

Using WiFiMCU.LUA_1.0.4_LoBo.bin version and lcddemo.lua example: lcddemo.lua, newyear_128x96.img and nature_128x96.img have been downloaded to the root folder (using file.recv() and extraputty Ymodem transfer). The demo works perfectly except that the lcd.image demo does not display the image and the following message is displayed twice: "[FTP fil] Bad file name or file not found!". In the file lcd.c, the function lcd_image calls checkFileName and displays the error message if checkFileName returns a result not equal to 1. Having looked at the code for checkFileName, I think that lcd_image should be looking for a result not equal to 2.

davidppoole avatar Oct 17 '16 01:10 davidppoole

I agree. Sadly, I'm not sure I can compile this (or even disassemble to change the constant by hand). Does anyone have IAR?

yorickvP avatar Jan 12 '17 22:01 yorickvP