Rename connection status LED function
This commit is contained in:
parent
e85548bef4
commit
38b9ed20cd
@ -180,10 +180,9 @@ def update_button_c(button, button_state, pwr, mode):
|
|||||||
return mode
|
return mode
|
||||||
|
|
||||||
|
|
||||||
def update_wifi_led():
|
def update_conn_led():
|
||||||
"""Refresh Wifi status LED"""
|
"""Refresh Wifi status LED"""
|
||||||
|
WIFI_LED.value(not WLAN.isconnected())
|
||||||
WIFI_LED.value = not WLAN.isconnected()
|
|
||||||
|
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
@ -235,6 +234,8 @@ while True:
|
|||||||
|
|
||||||
BUTTN_STATE = ENC_BUT.value()
|
BUTTN_STATE = ENC_BUT.value()
|
||||||
|
|
||||||
|
update_conn_led()
|
||||||
|
|
||||||
# On n'envoie les données de luminosité qu'une fois stabilisée (MQTT_DELAY)
|
# On n'envoie les données de luminosité qu'une fois stabilisée (MQTT_DELAY)
|
||||||
if BRIGHTN_DATA is not None and time.ticks_diff(time.ticks_ms(), MQTT_TIMER) >= 0:
|
if BRIGHTN_DATA is not None and time.ticks_diff(time.ticks_ms(), MQTT_TIMER) >= 0:
|
||||||
MqttMultiPublish(BRIGHTN_DATA)
|
MqttMultiPublish(BRIGHTN_DATA)
|
||||||
|
Loading…
Reference in New Issue
Block a user