twisted_pear před 2 roky
rodič
revize
a1f36b9d0d
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      esubghz_chat.c

+ 5 - 1
esubghz_chat.c

@@ -178,7 +178,7 @@ static void pass_input_cb(void *context)
 	ESubGhzChatState* state = context;
 	ESubGhzChatState* state = context;
 
 
 	furi_string_cat_printf(state->chat_box_store, "\nEncrypted: %s",
 	furi_string_cat_printf(state->chat_box_store, "\nEncrypted: %s",
-			(state->encrypted ? "true" : "false"));
+			(state->encrypted ? "yes" : "no"));
 
 
 	scene_manager_handle_custom_event(state->scene_manager,
 	scene_manager_handle_custom_event(state->scene_manager,
 			ESubGhzChatEvent_PassEntered);
 			ESubGhzChatEvent_PassEntered);
@@ -651,6 +651,8 @@ static void esubghz_hooked_draw_callback(Canvas* canvas, void* context)
 {
 {
 	FURI_LOG_T(APPLICATION_NAME, "esubghz_hooked_draw_callback");
 	FURI_LOG_T(APPLICATION_NAME, "esubghz_hooked_draw_callback");
 
 
+	furi_assert(canvas);
+
 	furi_assert(context);
 	furi_assert(context);
 	ESubGhzChatState* state = context;
 	ESubGhzChatState* state = context;
 
 
@@ -676,6 +678,8 @@ static void esubghz_hooked_input_callback(InputEvent* event, void* context)
 {
 {
 	FURI_LOG_T(APPLICATION_NAME, "esubghz_hooked_input_callback");
 	FURI_LOG_T(APPLICATION_NAME, "esubghz_hooked_input_callback");
 
 
+	furi_assert(event);
+
 	furi_assert(context);
 	furi_assert(context);
 	ESubGhzChatState* state = context;
 	ESubGhzChatState* state = context;