Skip to content

Commit 37a5a49

Browse files
author
kripthor
authored
Merge pull request #2 from morla10111/fix-discard-first-value
dont drop first value of signal when saving to spiffs
2 parents 6053d11 + 1c173ad commit 37a5a49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/spiffsutils.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ void storeSPIFFS(const char * path, uint16_t *signal433_store, uint16_t size){
5656
return;
5757
}
5858
int i = 0;
59-
while(i++ < size){
59+
while(i < size){
6060
file.write((unsigned char)(signal433_store[i]>>8 & 0xff));
6161
file.write((unsigned char)(signal433_store[i] & 0xff));
62+
i++;
6263
}
6364
}
6465

0 commit comments

Comments
 (0)