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 a656caf commit 292c27d
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 @@ -234,8 +234,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 292c27d

Please sign in to comment.