-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using floating point in the heartbeat code
Prior work in 2015 in this repository (commit 1c8ae71 and 52f3151) had removed all uses of floating point, saving the flash memory needed for floating point software routines. More recently, floating point is used if HEARTBEAT_SUPERVISION is enabled. By making a few small changes and adjusting things to use integer math, we can save 600+ bytes of flash. This also removes the deprecated function `HsDeactivate` which isn't called from anywhere.
- Loading branch information
Showing
2 changed files
with
9 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters