@@ -39,6 +39,7 @@ static void inbox_received_callback(DictionaryIterator *iterator, void *context)
3939 Tuple * clay_color_us_federal_tuple = dict_find (iterator , MESSAGE_KEY_CLAY_COLOR_US_FEDERAL );
4040 Tuple * clay_color_time_tuple = dict_find (iterator , MESSAGE_KEY_CLAY_COLOR_TIME );
4141 Tuple * clay_day_night_shading_tuple = dict_find (iterator , MESSAGE_KEY_CLAY_DAY_NIGHT_SHADING );
42+ Tuple * clay_precip_amount_bars_tuple = dict_find (iterator , MESSAGE_KEY_CLAY_PRECIP_AMOUNT_BARS );
4243
4344 if (temp_trend_tuple && precip_trend_tuple && precip_amount_trend_tuple && forecast_start_tuple && num_entries_tuple && city_tuple && sun_events_tuple ) {
4445 // Weather data received
@@ -76,7 +77,7 @@ static void inbox_received_callback(DictionaryIterator *iterator, void *context)
7677 else if (clay_celsius_tuple && clay_time_lead_zero_tuple && clay_axis_12h_tuple && clay_start_mon_tuple && clay_prev_week_tuple
7778 && clay_color_today_tuple && clay_time_font_tuple && clay_vibe_tuple && clay_show_qt_tuple && clay_show_bt_tuple
7879 && clay_show_bt_disconnect_tuple && clay_show_am_pm_tuple && clay_color_saturday_tuple && clay_color_sunday_tuple
79- && clay_color_us_federal_tuple && clay_color_time_tuple && clay_day_night_shading_tuple ) {
80+ && clay_color_us_federal_tuple && clay_color_time_tuple && clay_day_night_shading_tuple && clay_precip_amount_bars_tuple ) {
8081 // Clay config data received
8182 bool clay_celsius = (bool ) (clay_celsius_tuple -> value -> int16 );
8283 bool time_lead_zero = (bool ) (clay_time_lead_zero_tuple -> value -> int16 );
@@ -89,6 +90,7 @@ static void inbox_received_callback(DictionaryIterator *iterator, void *context)
8990 bool show_bt_disconnect = (bool ) (clay_show_bt_disconnect_tuple -> value -> int16 );
9091 bool show_am_pm = (bool ) (clay_show_am_pm_tuple -> value -> int16 );
9192 bool day_night_shading = (bool ) (clay_day_night_shading_tuple -> value -> int16 );
93+ bool precip_amount_bars = (bool ) (clay_precip_amount_bars_tuple -> value -> int16 );
9294 int16_t time_font = clay_time_font_tuple -> value -> int16 ;
9395 GColor color_today = GColorFromHEX (clay_color_today_tuple -> value -> int32 );
9496 GColor color_saturday = GColorFromHEX (clay_color_saturday_tuple -> value -> int32 );
@@ -112,7 +114,8 @@ static void inbox_received_callback(DictionaryIterator *iterator, void *context)
112114 .color_sunday = color_sunday ,
113115 .color_us_federal = color_us_federal ,
114116 .color_time = color_time ,
115- .day_night_shading = day_night_shading
117+ .day_night_shading = day_night_shading ,
118+ .precip_amount_bars = precip_amount_bars
116119 };
117120 persist_set_config (config );
118121 main_window_refresh ();
0 commit comments