You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Nope, now it's breaking!

    As you say, doing a readdir just before is enough to kill it. But readdir followed by a readFile is fine.

    >require("fs").readFile("Juergen1_data.bin")
    ="Hello World"
    >require("fs").statSync("Juergen1_data.bin")
    ={ "size": 11, "dir": false,
      "mtime": { "ms": 1328054400000 }
     }
    >require("fs").readdir()
    =[
      "Juergen.json",
      "Juergen1_ctrl.json",
      "Juerget1_data.bin",
      "Juergen1_data.bin",
      "Juerget1_data.bin~"
     ]
    >require("fs").statSync("Juergen1_data.bin") 
    

    Looks like this is something else dodgy in the SPI/Filesystem interface code :(

About

Avatar for Gordon @Gordon started