improvement
This commit is contained in:
@@ -105,12 +105,12 @@ void ui_com_freq_digital(uint8_t clear, uint8_t only_pointer) {
|
||||
uint8_t blink_state = (ticks_ms() / UI_BLINK_MS) % 2;
|
||||
uint8_t blink_state2 = !(global_data.point_mode & G_PMOD_PBLINK_MASK);
|
||||
if (!(global_data.point_mode & G_PMOD_PMOVE_MASK) || (blink_state ^ blink_state2)) {
|
||||
uint8_t p_pos = (global_data.point_mode & G_POMD_POS_MASK) >> G_POMD_POS_BOFF;
|
||||
uint8_t p_pos = bit_fetch(global_data.point_mode, G_POMD_POS_BOFF, G_POMD_POS_MASK);
|
||||
uint16_t p_off = (4 - p_pos) * 18 + 2 + off_x;
|
||||
ST7735_FillRectangle(p_off, off_y + 33, 14, 2, color_orange);
|
||||
global_data.point_mode = global_data.point_mode | G_PMOD_PBLINK2_MASK;
|
||||
bit_set(global_data.point_mode, G_PMOD_PBLINK2_MASK);
|
||||
} else {
|
||||
global_data.point_mode = global_data.point_mode & (~G_PMOD_PBLINK2_MASK);
|
||||
bit_clear(global_data.point_mode, G_PMOD_PBLINK2_MASK);
|
||||
}
|
||||
}
|
||||
uint16_t scale = 10000;
|
||||
|
Reference in New Issue
Block a user