mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
github: enable warnings
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
5f183bfc42
commit
5b0e19438a
10 changed files with 26 additions and 20 deletions
|
|
@ -58,7 +58,10 @@ bool ConfigFile::seekRecordByIndex(uint16_t ndx) {
|
|||
if(!this->file) {
|
||||
return false;
|
||||
}
|
||||
if(((this->header.recordSize * ndx) + this->header.length) > this->file.size()) return false;
|
||||
if(((this->header.recordSize * ndx) + this->header.length) > this->file.size()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
bool ConfigFile::readString(char *buff, size_t len) {
|
||||
if(!this->file) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue