1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-07-14 20:29:02 +00:00

esp8266 SPIFFS.begin

This commit is contained in:
Stephen Crane 2018-11-14 20:24:38 +00:00
parent 7eddcc15ff
commit a9613bc823
2 changed files with 8 additions and 3 deletions

View File

@ -10,6 +10,10 @@
#include <SPIFFS.h>
#endif
#if defined(ESP8266)
#include <FS.h>
#endif
#include "memory.h"
#include "ps2drv.h"
#include "CPU.h"
@ -39,10 +43,12 @@ bool hardware_reset() {
#if defined(USE_SD)
success = SD.begin(SD_CS, 2, SD_SPI);
pinMode(SPI_CS, OUTPUT); // without this, the SPI-RAM isn't seen
#endif
#if defined(USE_SPIFFS)
#elif defined(USE_SPIFFS)
success = SPIFFS.begin(true);
#elif defined(ESP8266)
success = SPIFFS.begin();
#endif
#if defined(TFT_BACKLIGHT)

View File

@ -23,7 +23,6 @@ static Dir dir;
bool sdtape::start(const char *programs)
{
#if defined(ESP8266)
SPIFFS.begin();
dir = SPIFFS.openDir("/");
#elif defined(DISK)
dir = DISK.open(programs);