madman37287 / KevBoy

0 stars 0 forks source link

Optimize battery status script #16

Open madman37287 opened 1 month ago

madman37287 commented 1 month ago

The code is currently set to have a 1 second timeout on the serial port, with only a 0.03 second sleep between reads. This was mostly for testing purposes. With battery status, we likely only want to check every few seconds. The battery read should not be taking up any significant amount of resources.