pr3y / Bruce

Predatory ESP32 Firmware
https://bruce.computer
GNU Affero General Public License v3.0
364 stars 62 forks source link

IR Read won't write the file to little fs. (Bug) #173

Closed Z-SHOCK-E closed 1 month ago

Z-SHOCK-E commented 1 month ago

On the stick c plus2 I built and flashed the firmware from pio via vs code. Ir read works ok with a 3 pin ir sensor but it won't save anything. Insted of writing the file to littleFS it gives an error. I even tried it after creating a folder named "BruceIR" but still no luck.

Lamnxzp commented 1 month ago

https://github.com/pr3y/Bruce/blob/038da5a64167ca8a1ba5475799edc2ebbfdae8e7/src/modules/ir/ir_read.cpp?plain=1#L177 Maybe by changing this to

if(checkLittleFsSize()) fs=&LittleFS;

will work?

Z-SHOCK-E commented 1 month ago

Thanks it worked. Sorry for the late reply.