Skip to content

Commit

Permalink
screen: Fix direction of knob indicator
Browse files Browse the repository at this point in the history
* CW is positive
  • Loading branch information
xingrz committed Oct 18, 2023
1 parent 16de14d commit bbd8a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/boards/arm/hw75_dynamic/app/screen/knob_indicator.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static void refresh_work_cb(struct k_work *work)
position_zero = state.current_angle - dp;
}

item_y -= dp / PI_2 * (float)TRACK_H / 2.0f;
item_y += dp / PI_2 * (float)TRACK_H / 2.0f;

float tail_h = INDICATOR_T * state.target_voltage;
tail_h = LV_ABS(tail_h);
Expand Down

0 comments on commit bbd8a48

Please sign in to comment.