Lib: update m-lib to latest release. Update m-lib usage across project. (#818)
This commit is contained in:
		| @@ -45,7 +45,7 @@ void subghz_scene_add_to_history_callback(SubGhzProtocolCommon* parser, void* co | ||||
|     if(subghz_history_add_to_history( | ||||
|            subghz->txrx->history, parser, subghz->txrx->frequency, subghz->txrx->preset)) { | ||||
|         subghz_parser_reset(subghz->txrx->parser); | ||||
|         string_clean(str_buff); | ||||
|         string_reset(str_buff); | ||||
|         subghz_history_get_text_item_menu( | ||||
|             subghz->txrx->history, str_buff, subghz_history_get_item(subghz->txrx->history) - 1); | ||||
|         subghz_receiver_add_item_to_menu( | ||||
| @@ -67,7 +67,7 @@ void subghz_scene_receiver_on_enter(void* context) { | ||||
|     //Load history to receiver | ||||
|     subghz_receiver_exit(subghz->subghz_receiver); | ||||
|     for(uint8_t i = 0; i < subghz_history_get_item(subghz->txrx->history); i++) { | ||||
|         string_clean(str_buff); | ||||
|         string_reset(str_buff); | ||||
|         subghz_history_get_text_item_menu(subghz->txrx->history, str_buff, i); | ||||
|         subghz_receiver_add_item_to_menu( | ||||
|             subghz->subghz_receiver, | ||||
|   | ||||
| @@ -44,5 +44,5 @@ void subghz_scene_show_error_on_exit(void* context) { | ||||
|     popup_set_context(popup, NULL); | ||||
|     popup_set_timeout(popup, 0); | ||||
|     popup_disable_timeout(popup); | ||||
|     string_clean(subghz->error_str); | ||||
|     string_reset(subghz->error_str); | ||||
| } | ||||
|   | ||||
| @@ -223,9 +223,9 @@ void subghz_read_raw_exit(void* context) { | ||||
|                 instance->callback(SubghzCustomEventViewReadRAWIDLE, instance->context); | ||||
|                 model->satus = SubghzReadRAWStatusStart; | ||||
|             } | ||||
|             string_clean(model->frequency_str); | ||||
|             string_clean(model->preset_str); | ||||
|             string_clean(model->sample_write); | ||||
|             string_reset(model->frequency_str); | ||||
|             string_reset(model->preset_str); | ||||
|             string_reset(model->sample_write); | ||||
|             free(model->rssi_history); | ||||
|             return true; | ||||
|         }); | ||||
|   | ||||
| @@ -168,7 +168,7 @@ void subghz_receiver_draw(Canvas* canvas, SubghzReceiverModel* model) { | ||||
|         } | ||||
|         canvas_draw_icon(canvas, 1, 2 + i * FRAME_HEIGHT, ReceiverItemIcons[item_menu->type]); | ||||
|         canvas_draw_str(canvas, 15, 9 + i * FRAME_HEIGHT, string_get_cstr(str_buff)); | ||||
|         string_clean(str_buff); | ||||
|         string_reset(str_buff); | ||||
|     } | ||||
|     if(scrollbar) { | ||||
|         elements_scrollbar_pos(canvas, 128, 0, 49, model->idx, model->history_item); | ||||
| @@ -226,15 +226,15 @@ void subghz_receiver_exit(void* context) { | ||||
|     SubghzReceiver* subghz_receiver = context; | ||||
|     with_view_model( | ||||
|         subghz_receiver->view, (SubghzReceiverModel * model) { | ||||
|             string_clean(model->frequency_str); | ||||
|             string_clean(model->preset_str); | ||||
|             string_clean(model->history_stat_str); | ||||
|             string_reset(model->frequency_str); | ||||
|             string_reset(model->preset_str); | ||||
|             string_reset(model->history_stat_str); | ||||
|                 for | ||||
|                     M_EACH(item_menu, model->history->data, SubGhzReceiverMenuItemArray_t) { | ||||
|                         string_clear(item_menu->item_str); | ||||
|                         item_menu->type = 0; | ||||
|                     } | ||||
|                 SubGhzReceiverMenuItemArray_clean(model->history->data); | ||||
|                 SubGhzReceiverMenuItemArray_reset(model->history->data); | ||||
|                 model->idx = 0; | ||||
|                 model->list_offset = 0; | ||||
|                 model->history_item = 0; | ||||
|   | ||||
| @@ -93,9 +93,9 @@ bool subghz_transmitter_input(InputEvent* event, void* context) { | ||||
|     if(event->key == InputKeyBack && event->type == InputTypeShort) { | ||||
|         with_view_model( | ||||
|             subghz_transmitter->view, (SubghzTransmitterModel * model) { | ||||
|                 string_clean(model->frequency_str); | ||||
|                 string_clean(model->preset_str); | ||||
|                 string_clean(model->key_str); | ||||
|                 string_reset(model->frequency_str); | ||||
|                 string_reset(model->preset_str); | ||||
|                 string_reset(model->key_str); | ||||
|                 model->show_button = 0; | ||||
|                 return false; | ||||
|             }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user