Hi,
The driver checks for invalid values or the developer would not have any way to be notified about SW errors. You may do the rounding before calling the GPT function, this way the check would not be triggered.
Giovanni
Conversion from Chibios2.6.6 to Chibios16.1
Moderator: RoccoMarco
- Giovanni
- Site Admin
- Posts: 14893
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
-
Rick Burnett
- Posts: 150
- Joined: Tue Jan 08, 2013 2:20 pm
Re: Conversion from Chibios2.6.6 to Chibios16.1
I definitely agree that what you have makes sense, because if not, a developer wouldn't know they were getting an inaccurate value because of rounding. In this case, I didn't want to pay the penalty of multiple computation calls so I just let it round it and disabled that particular check.