Browse Source

bump version, simplify is_enough_heap

jblanked 1 year ago
parent
commit
da81df626f
2 changed files with 3 additions and 11 deletions
  1. 1 9
      flip_world.c
  2. 2 2
      flip_world.h

+ 1 - 9
flip_world.c

@@ -6,12 +6,4 @@ char *yes_or_no_choices[] = {"No", "Yes"};
 int game_screen_always_on_index = 1;
 int game_sound_on_index = 0;
 int game_vibration_on_index = 0;
-bool is_enough_heap(size_t heap_size)
-{
-    size_t free_heap = memmgr_get_free_heap();
-
-    FURI_LOG_I(TAG, "Free heap: %d", free_heap);
-    FURI_LOG_I(TAG, "Total heap: %d", memmgr_get_total_heap());
-
-    return free_heap > (heap_size + 1024); // 1KB buffer
-}
+bool is_enough_heap(size_t heap_size) { return memmgr_get_free_heap() > (heap_size + 1024); } // 1KB buffer

+ 2 - 2
flip_world.h

@@ -4,8 +4,8 @@
 #include <easy_flipper/easy_flipper.h>
 
 #define TAG "FlipWorld"
-#define VERSION 0.2
-#define VERSION_TAG "FlipWorld v0.2"
+#define VERSION 0.3
+#define VERSION_TAG "FlipWorld v0.3"
 
 // Define the submenu items for our FlipWorld application
 typedef enum