mirror of https://github.com/arendst/Tasmota.git
Force Berry and Autoconf to use internal Flash file-system
This commit is contained in:
parent
a9f0585429
commit
ac2634d8e7
|
@ -19,8 +19,8 @@
|
||||||
#ifdef USE_UFILESYS
|
#ifdef USE_UFILESYS
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
#include "ZipReadFS.h"
|
#include "ZipReadFS.h"
|
||||||
extern FS *ufsp;
|
extern FS *ffsp;
|
||||||
FS zip_ufsp(ZipReadFSImplPtr(new ZipReadFSImpl(&ufsp)));
|
FS zip_ufsp(ZipReadFSImplPtr(new ZipReadFSImpl(&ffsp)));
|
||||||
#endif // USE_UFILESYS
|
#endif // USE_UFILESYS
|
||||||
|
|
||||||
/* this file contains configuration for the file system. */
|
/* this file contains configuration for the file system. */
|
||||||
|
@ -105,7 +105,7 @@ extern "C" {
|
||||||
const char *path = be_tostring(vm, 1);
|
const char *path = be_tostring(vm, 1);
|
||||||
be_newobject(vm, "list");
|
be_newobject(vm, "list");
|
||||||
|
|
||||||
File dir = ufsp->open(path, "r");
|
File dir = ffsp->open(path, "r");
|
||||||
if (dir) {
|
if (dir) {
|
||||||
dir.rewindDirectory();
|
dir.rewindDirectory();
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|
Loading…
Reference in New Issue