Browse Source

update

master
zhaohe 11 months ago
parent
commit
752f24d8af
  1. 8
      app/src/app_service/light_ctrl.c
  2. 2
      app_protocols

8
app/src/app_service/light_ctrl.c

@ -44,17 +44,17 @@ static void light_tmr_cb(void* p_context) {
} else if (zappcore_get_state() == kstate_online_workstate) {
if (!zapp_get_gstate()->work_state) {
if (zapp_get_gstate()->hand_acid_mode == khand_acid_m_jog_mode) {
nrf_gpio_set_rgb(0, 0, 1);
} else if (zapp_get_gstate()->hand_acid_mode == khand_acid_m_continuous_mode) {
nrf_gpio_set_rgb(0, 1, 0);
} else if (zapp_get_gstate()->hand_acid_mode == khand_acid_m_continuous_mode) {
nrf_gpio_set_rgb(0, 0, 1);
} else {
nrf_gpio_set_rgb(0, 1, 1);
}
} else {
if (zapp_get_gstate()->hand_acid_mode == khand_acid_m_jog_mode) {
nrf_gpio_set_rgb(0, 0, laststate);
} else if (zapp_get_gstate()->hand_acid_mode == khand_acid_m_continuous_mode) {
nrf_gpio_set_rgb(0, laststate, 0);
} else if (zapp_get_gstate()->hand_acid_mode == khand_acid_m_continuous_mode) {
nrf_gpio_set_rgb(0, 0, laststate);
} else {
nrf_gpio_set_rgb(0, laststate, laststate);
}

2
app_protocols

@ -1 +1 @@
Subproject commit 5f6308f9929809ffe5481b03d32488334f33c0e9
Subproject commit 38674eceb0655cfa98679886e95bd1e4f9dfc89d
Loading…
Cancel
Save