mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +00:00
Skip filename leading slash in user message
This commit is contained in:
parent
2f28c656d5
commit
61b0e9ad34
@ -279,7 +279,7 @@ bool TfsFileExists(const char *fname){
|
|||||||
|
|
||||||
bool yes = ffsp->exists(fname);
|
bool yes = ffsp->exists(fname);
|
||||||
if (!yes) {
|
if (!yes) {
|
||||||
AddLog(LOG_LEVEL_DEBUG, PSTR("TFS: File '%s' not found"), fname);
|
AddLog(LOG_LEVEL_DEBUG, PSTR("TFS: File '%s' not found"), fname +1); // Skip leading slash
|
||||||
}
|
}
|
||||||
return yes;
|
return yes;
|
||||||
}
|
}
|
||||||
@ -320,7 +320,7 @@ bool TfsLoadFile(const char *fname, uint8_t *buf, uint32_t len) {
|
|||||||
|
|
||||||
File file = ffsp->open(fname, "r");
|
File file = ffsp->open(fname, "r");
|
||||||
if (!file) {
|
if (!file) {
|
||||||
AddLog(LOG_LEVEL_INFO, PSTR("TFS: File '%s' not found"), fname);
|
AddLog(LOG_LEVEL_INFO, PSTR("TFS: File '%s' not found"), fname +1); // Skip leading slash
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user