klange / toaruos

A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
https://toaruos.org/
University of Illinois/NCSA Open Source License
6.03k stars 475 forks source link

Temporary workaround for #222 #268

Closed ghost closed 1 year ago

ghost commented 1 year ago

Checks if the unit values are valid (standard, metric, imperial). If not, default to metric.

As pointed out in the code comment, this should be checked before the configuration is even saved to inform the user of invalid input.