Skip to content

Commit

Permalink
only blink at ramp ceiling when going up
Browse files Browse the repository at this point in the history
  • Loading branch information
ntoivola authored and Isilmerie committed Oct 14, 2024
1 parent 7538999 commit fbb8767
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/anduril/ramp-mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ uint8_t steady_state(Event event, uint16_t arg) {
|| (memorized_level == BLINK_AT_RAMP_MIDDLE_2)
#endif
#ifdef BLINK_AT_RAMP_CEIL
// FIXME: only blink at top when going up, not down
|| (memorized_level == mode_max)
|| ((memorized_level == mode_max) && (ramp_direction == 1))
#endif
#ifdef BLINK_AT_RAMP_FLOOR
|| (memorized_level == mode_min)
Expand Down

0 comments on commit fbb8767

Please sign in to comment.