mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-09 19:21:54 -07:00
Sub-GHz: Fix display of memory full
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
|
||||
### Fixed:
|
||||
- Sub-GHz:
|
||||
- Fix display of memory full (by @WillyJL)
|
||||
- UL: Fixed button mapping for FAAC RC/XT (by @xMasterX)
|
||||
- UL: Possible Sommer timings fix (by @xMasterX)
|
||||
- UL: Various fixes and cleanup (by @xMasterX)
|
||||
|
||||
@@ -97,9 +97,9 @@ static void subghz_scene_receiver_update_statusbar(void* context) {
|
||||
} else {
|
||||
subghz_view_receiver_add_data_statusbar(
|
||||
subghz->subghz_receiver,
|
||||
"",
|
||||
"",
|
||||
furi_string_get_cstr(history_stat_str),
|
||||
"",
|
||||
"",
|
||||
subghz_txrx_hopper_get_state(subghz->txrx) != SubGhzHopperStateOFF,
|
||||
READ_BIT(subghz->filter, SubGhzProtocolFlag_BinRAW) > 0,
|
||||
show_sats,
|
||||
|
||||
@@ -199,11 +199,11 @@ bool subghz_history_get_text_space_left(
|
||||
furi_assert(instance);
|
||||
if(!ignore_full) {
|
||||
if(memmgr_get_free_heap() < SUBGHZ_HISTORY_FREE_HEAP) {
|
||||
if(output != NULL) furi_string_printf(output, " Memory is FULL");
|
||||
if(output != NULL) furi_string_set(output, "Memory is FULL");
|
||||
return true;
|
||||
}
|
||||
if(instance->last_index_write == SUBGHZ_HISTORY_MAX) {
|
||||
if(output != NULL) furi_string_printf(output, " History is FULL");
|
||||
if(output != NULL) furi_string_set(output, "History is FULL");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -435,8 +435,10 @@ void subghz_view_receiver_draw(Canvas* canvas, SubGhzViewReceiverModel* model) {
|
||||
canvas_draw_str(canvas, 44, 62, frequency_str);
|
||||
#ifdef SUBGHZ_EXT_PRESET_NAME
|
||||
if(model->history_item == 0 && model->mode == SubGhzViewReceiverModeLive) {
|
||||
canvas_draw_str(
|
||||
canvas, 44 + canvas_string_width(canvas, frequency_str) + 1, 62, "MHz");
|
||||
if(*frequency_str) {
|
||||
canvas_draw_str(
|
||||
canvas, 44 + canvas_string_width(canvas, frequency_str) + 1, 62, "MHz");
|
||||
}
|
||||
const char* str = furi_string_get_cstr(model->preset_str);
|
||||
const uint8_t vertical_offset = 7;
|
||||
const uint8_t horizontal_offset = 3;
|
||||
|
||||
Reference in New Issue
Block a user