HASwitchPlate / openHASP

HomeAutomation Switchplate based on lvgl for ESP32
https://www.openhasp.com
MIT License
727 stars 185 forks source link

Missing the FILE_SIZE_DIVIDER for gigabits #737

Closed FreeBear-nc closed 6 months ago

FreeBear-nc commented 6 months ago

Started using the format_bytes function with some real big numbers. Noted that the numbers were not being converted from MB to GB before being printed.

fvanroie commented 6 months ago

Good catch, that seems to be an oversight as we didn't need GiB before... I think that function can be optimized a bit.