mirror of
https://github.com/jscrane/r65emu.git
synced 2025-01-09 11:31:17 +00:00
esp8266 SPIFFS.begin
This commit is contained in:
parent
7eddcc15ff
commit
a9613bc823
10
hardware.cpp
10
hardware.cpp
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user