mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +00:00
fix potential crash with wrong linker file
This commit is contained in:
parent
1a3bfb2422
commit
d600768d49
@ -952,6 +952,7 @@ void DisplayText(void)
|
|||||||
extern FS *ufsp;
|
extern FS *ufsp;
|
||||||
void Display_Text_From_File(const char *file) {
|
void Display_Text_From_File(const char *file) {
|
||||||
File fp;
|
File fp;
|
||||||
|
if (!ufsp) return;
|
||||||
fp = ufsp->open(file, FS_FILE_READ);
|
fp = ufsp->open(file, FS_FILE_READ);
|
||||||
if (fp >= 0) {
|
if (fp >= 0) {
|
||||||
char *savptr = XdrvMailbox.data;
|
char *savptr = XdrvMailbox.data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user