Suspiciously everything worked when changing to floats

This commit is contained in:
2025-08-10 09:00:00 -05:00
parent 24fcf87fb4
commit 26ecf67472
18 changed files with 817 additions and 863 deletions

View File

@@ -1,5 +1,2 @@
def floatToFixed248(value):
# Converts a float to the fixed248_t used internally.
high24 = int(value) & 0xFFFFFF
low8 = int((value * 256.0 - high24) * 256.0) & 0xFF
return f'((fixed248_t){(high24 << 8) | low8})'
return value;