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