mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 13:18:35 -07:00
mlib updates
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include <furi.h>
|
||||
#include <furi_hal.h>
|
||||
#include <stdlib.h>
|
||||
#include <m-string.h>
|
||||
#include <stm32wbxx_ll_tim.h>
|
||||
#include "tama.h"
|
||||
|
||||
@@ -37,7 +36,7 @@ static bool_t tama_p1_hal_is_log_enabled(log_level_t level) {
|
||||
static void tama_p1_hal_log(log_level_t level, char* buff, ...) {
|
||||
if(!tama_p1_hal_is_log_enabled(level)) return;
|
||||
|
||||
string_t string;
|
||||
FuriString* string;
|
||||
va_list args;
|
||||
va_start(args, buff);
|
||||
string_init_vprintf(string, buff, args);
|
||||
@@ -45,15 +44,15 @@ static void tama_p1_hal_log(log_level_t level, char* buff, ...) {
|
||||
|
||||
switch(level) {
|
||||
case LOG_ERROR:
|
||||
FURI_LOG_E(TAG_HAL, "%s", string_get_cstr(string));
|
||||
FURI_LOG_E(TAG_HAL, "%s", furi_string_get_cstr(string));
|
||||
break;
|
||||
case LOG_INFO:
|
||||
FURI_LOG_I(TAG_HAL, "%s", string_get_cstr(string));
|
||||
FURI_LOG_I(TAG_HAL, "%s", furi_string_get_cstr(string));
|
||||
break;
|
||||
case LOG_MEMORY:
|
||||
case LOG_CPU:
|
||||
default:
|
||||
FURI_LOG_D(TAG_HAL, "%s", string_get_cstr(string));
|
||||
FURI_LOG_D(TAG_HAL, "%s", furi_string_get_cstr(string));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user