Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid too frequent SmartShunt data copies (#596)
currently the whole SmartShunt data structure is copied to the BatteryStats instance in every loop, even though the data cannot possibly have changed. this is quite an expensive task to do in every loop. this change tracks the last update timestamp and only does the copy operation if an actual updated data structure was received from the smart shunt.
- Loading branch information