Can someone double check my code for my app?

I made this configurable caffeine tracking app, and raw-dogged the fixed point math for it. I think there are no major issues with it, but still maybe could have some overflows or precission loss. I would be really thankful if someone could look over the code and see if anything jumps out at you.

This is my first app for the pebble, so the settings are very jank, maybe someone has suggestions how to improve that too. (Also found that Clay sends numbers as strings for some reason…)

Here’s the github: GitHub - FPuzeras/HalfLife: The Intelligent Caffeine & Circadian Optimization Engine. · GitHub

2 Likes