fix: convert state character to integer

This commit is contained in:
2025-03-20 13:59:41 +01:00
parent f3c58a3923
commit 3375ce5531

View File

@@ -23,7 +23,7 @@ bool getcpu(uint32_t id) {
fclose(f);
// return whether state is truthy
return !!state;
return !!(state - 0x30);
}
void setcpu(uint32_t id, bool state) {