Weather App - update gui when new setting set via bluetooth

This commit is contained in:
chrismcna
2020-08-21 16:33:34 +01:00
parent 38b10fb160
commit 05f8e567a1

View File

@@ -284,6 +284,11 @@ void bluetooth_message_msg_pharse( char* msg ) {
strlcpy( weather_config->lat, doc["lat"] | "", sizeof( weather_config->lat ) );
strlcpy( weather_config->lon, doc["lon"] | "", sizeof( weather_config->lon ) );
weather_save_config();
lv_textarea_set_text( weather_apikey_textfield, weather_config->apikey );
lv_textarea_set_text( weather_lat_textfield, weather_config->lat );
lv_textarea_set_text( weather_lon_textfield, weather_config->lon );
motor_vibe(100);
}