Closed gmlewis closed 5 years ago
I'm not sure if it's still this way, but back when I took the code from their site and put it up, the code only allowed going into a single sub-directory. I'm not sure why. You can go look at the latest code and see if it's still like that.
On line 193 in sdsource.cpp: https://github.com/stridera/oneTesla-Interrupter/blob/master/src/main/sdsource.cpp#L193 it checks for
isRoot
and if that fails, it says "Can't switch".Looking at the SdFat source: https://github.com/adafruit/SD/blob/master/utility/SdFat.h#L219-L222 it says:
I have an sdcard laid out like this: omd/a-g omd/h-m omd/n-t omd/u-z
This code can
cd
intoomd
but can'tcd
into any of the subdirectories, and theisRoot
check seems to be the problem. Is there any reason for including this check?Thanks!