HASwitchPlate / openHASP

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

Missing the FILE_SIZE_DIVIDER for gigabits #737

Closed FreeBear-nc closed 4 months ago

FreeBear-nc commented 4 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 4 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.