Skip to content

Commit

Permalink
Added comments to clarify bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
diyarajon committed Mar 2, 2024
1 parent 8b40144 commit b3084b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Drivers/Src/Pedals.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ uint8_t PedalsRead(Pedal pedal) {
uint16_t millivolts_pedal =
BspAdcGetMillivoltage((pedal == kAccelerator) ? kCh10 : kCh11);

// Handle case if above bound
// Handle cases if above and below bounds
if (millivolts_pedal >= kUpperBound[pedal]) {
return 100;
}
Expand Down

0 comments on commit b3084b4

Please sign in to comment.