diff options
author | Anna Prosvetova <anna@prosvetova.me> | 2021-11-12 16:04:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-12 16:04:35 +0300 |
commit | 558fa5670bb624c63c03f76f9f434dc7189f2aa9 (patch) | |
tree | 0a4f521af9d25fde4258bfd6d0feac5f9f05ee45 /applications/dolphin | |
parent | b564e8eb3851d976f5e690aaaa13db7c653c7455 (diff) |
RPC: Add Virtual Display & Unify log tags (#814)
* RPC: Update protobuf sources
* RPC: Add Virtual Display
* Unify log tags
* RPC: Virtual Display placeholder
* Rpc: clear frame buffer callback before confirm.
* Firmware: full assert for hal, move fatfs initialization to furi hal.
* FuriHal: VCP optimizations, thread safe console. Rpc: adjust buffer sizes.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Diffstat (limited to 'applications/dolphin')
-rw-r--r-- | applications/dolphin/dolphin.c | 2 | ||||
-rw-r--r-- | applications/dolphin/helpers/dolphin_state.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/applications/dolphin/dolphin.c b/applications/dolphin/dolphin.c index 1415f435..09bdb982 100644 --- a/applications/dolphin/dolphin.c +++ b/applications/dolphin/dolphin.c @@ -82,7 +82,7 @@ static void dolphin_check_butthurt(DolphinState* state) { float diff_time = difftime(dolphin_state_get_timestamp(state), dolphin_state_timestamp()); if((fabs(diff_time)) > DOLPHIN_TIMEGATE) { - FURI_LOG_I("dolphin-state", "Increasing butthurt"); + FURI_LOG_I("DolphinState", "Increasing butthurt"); dolphin_state_butthurted(state); } } diff --git a/applications/dolphin/helpers/dolphin_state.c b/applications/dolphin/helpers/dolphin_state.c index 379908c9..31066534 100644 --- a/applications/dolphin/helpers/dolphin_state.c +++ b/applications/dolphin/helpers/dolphin_state.c @@ -4,7 +4,7 @@ #include <math.h> #include <toolbox/saved_struct.h> -#define DOLPHIN_STATE_TAG "DolphinState" +#define TAG "DolphinState" #define DOLPHIN_STATE_PATH "/int/dolphin.state" #define DOLPHIN_STATE_HEADER_MAGIC 0xD0 #define DOLPHIN_STATE_HEADER_VERSION 0x01 @@ -48,10 +48,10 @@ bool dolphin_state_save(DolphinState* dolphin_state) { DOLPHIN_STATE_HEADER_VERSION); if(result) { - FURI_LOG_I(DOLPHIN_STATE_TAG, "State saved"); + FURI_LOG_I(TAG, "State saved"); dolphin_state->dirty = false; } else { - FURI_LOG_E(DOLPHIN_STATE_TAG, "Failed to save state"); + FURI_LOG_E(TAG, "Failed to save state"); } return result; @@ -66,7 +66,7 @@ bool dolphin_state_load(DolphinState* dolphin_state) { DOLPHIN_STATE_HEADER_VERSION); if(!loaded) { - FURI_LOG_W(DOLPHIN_STATE_TAG, "Reset dolphin-state"); + FURI_LOG_W(TAG, "Reset dolphin-state"); memset(dolphin_state, 0, sizeof(*dolphin_state)); dolphin_state->dirty = true; } |