change to logical and operator

This commit is contained in:
Thomas Göttgens 2022-08-04 09:12:56 +02:00
parent 18d5712ecd
commit 71a9f46451

View File

@ -33,7 +33,7 @@ bool copyFile(const char* from, const char* to)
bool renameFile(const char* pathFrom, const char* pathTo)
{
#ifdef FSCom
if (copyFile(pathFrom, pathTo) & FSCom.remove(pathFrom) ) {
if (copyFile(pathFrom, pathTo) && FSCom.remove(pathFrom) ) {
return true;
} else{
return false;