Oliver Fabel 1 год назад
Родитель
Сommit
d763720817
3 измененных файлов с 7 добавлено и 7 удалено
  1. 1 1
      genhdr/mpversion.h
  2. 1 1
      mp_flipper_logging.c
  3. 5 5
      mp_flipper_logging.h

+ 1 - 1
genhdr/mpversion.h

@@ -1,4 +1,4 @@
 // This file was generated by py/makeversionhdr.py
 #define MICROPY_GIT_TAG "v1.23.0"
 #define MICROPY_GIT_HASH "a61c446c0"
-#define MICROPY_BUILD_DATE "2024-10-04"
+#define MICROPY_BUILD_DATE "2024-10-05"

+ 1 - 1
mp_flipper_logging.c

@@ -7,7 +7,7 @@
 #include "mp_flipper_logging.h"
 
 static mp_obj_t mp_flipper_logging_log_internal(uint8_t level, size_t n_args, const mp_obj_t* args) {
-    if(n_args < 1 || level < mp_flipper_log_get_level()) {
+    if(n_args < 1 || level > mp_flipper_log_get_level()) {
         return mp_const_none;
     }
 

+ 5 - 5
mp_flipper_logging.h

@@ -2,12 +2,12 @@
 
 #include <stdint.h>
 
-#define MP_FLIPPER_LOG_LEVEL_TRACE (0)
-#define MP_FLIPPER_LOG_LEVEL_DEBUG (1)
-#define MP_FLIPPER_LOG_LEVEL_INFO (2)
+#define MP_FLIPPER_LOG_LEVEL_TRACE (6)
+#define MP_FLIPPER_LOG_LEVEL_DEBUG (5)
+#define MP_FLIPPER_LOG_LEVEL_INFO (4)
 #define MP_FLIPPER_LOG_LEVEL_WARN (3)
-#define MP_FLIPPER_LOG_LEVEL_ERROR (4)
-#define MP_FLIPPER_LOG_LEVEL_NONE (5)
+#define MP_FLIPPER_LOG_LEVEL_ERROR (2)
+#define MP_FLIPPER_LOG_LEVEL_NONE (1)
 
 uint8_t mp_flipper_log_get_level();
 void mp_flipper_log_set_level(uint8_t level);