PanelDue Sd-card
Hallo,
i sucessfull conected PanekDue to my Controller Board with Repetier 1.0.3dev.
Every thing works fine exept the listing of my SD-card.
After some problem tracking i found out the Command send from PanelDue is at a different format then Repetier expect.
Repetier expect "M20S2 P/" and PanelDue send "M20 S2 P0:/"
After i modified the Firmware of PanelDue the SD-Card was working flawless. But this makes PanelDue incompatible with all other Firmware(Marlin, RepRap, Smooth)
Without modification the Filelist is presented in a normal way and not in the Format of JSON.
i sucessfull conected PanekDue to my Controller Board with Repetier 1.0.3dev.
Every thing works fine exept the listing of my SD-card.
After some problem tracking i found out the Command send from PanelDue is at a different format then Repetier expect.
Repetier expect "M20S2 P/" and PanelDue send "M20 S2 P0:/"
After i modified the Firmware of PanelDue the SD-Card was working flawless. But this makes PanelDue incompatible with all other Firmware(Marlin, RepRap, Smooth)
Without modification the Filelist is presented in a normal way and not in the Format of JSON.
Comments
is what is happening. I guess we should not use com->text+4 but search for the / char as start to folder. Then old and new format will work.
I was using your recommendation and changed the last Line to:
sd.lsJSON(com->text+(strchr(com->text,'/') - com->text));
maybe not very effective or elegant, but this is working now with the default PanelDue commands.
Here my version for next update of dev:
Hope it works as I have no paneldue for testing at the moment. But is is based on your solution, so it should work as well.
I was sure my modification is not very effective, but i not so familiar with C++.
Will this change be integratet into the next Repetier Update ? So i must not take care on updates.