Fixes & imporvements

Use our custom icon for Bin RAW
This commit is contained in:
MX 2023-02-09 17:49:28 +03:00
parent b9351649ed
commit 539c4e2dd0
No known key found for this signature in database
GPG Key ID: 7CCC66B7DBDD1C83
6 changed files with 27 additions and 11 deletions

View File

@ -278,14 +278,11 @@ void subghz_scene_receiver_config_on_enter(void* context) {
variable_item_set_current_value_text(item, hopping_text[value_index]); variable_item_set_current_value_text(item, hopping_text[value_index]);
} }
// Enable speaker, will send all incoming noises and signals to speaker so you can listen how your remote sounds like :)
item = variable_item_list_add(
subghz->variable_item_list,
if(scene_manager_get_scene_state(subghz->scene_manager, SubGhzSceneReadRAW) != if(scene_manager_get_scene_state(subghz->scene_manager, SubGhzSceneReadRAW) !=
SubGhzCustomEventManagerSet) { SubGhzCustomEventManagerSet) {
item = variable_item_list_add( item = variable_item_list_add(
subghz->variable_item_list, subghz->variable_item_list,
"Bin_RAW:", "Bin RAW:",
BIN_RAW_COUNT, BIN_RAW_COUNT,
subghz_scene_receiver_config_set_bin_raw, subghz_scene_receiver_config_set_bin_raw,
subghz); subghz);
@ -294,6 +291,9 @@ void subghz_scene_receiver_config_on_enter(void* context) {
variable_item_set_current_value_text(item, bin_raw_text[value_index]); variable_item_set_current_value_text(item, bin_raw_text[value_index]);
} }
// Enable speaker, will send all incoming noises and signals to speaker so you can listen how your remote sounds like :)
item = variable_item_list_add(
subghz->variable_item_list,
"Sound:", "Sound:",
SPEAKER_COUNT, SPEAKER_COUNT,
subghz_scene_receiver_config_set_speaker, subghz_scene_receiver_config_set_speaker,

View File

@ -92,8 +92,6 @@ void subghz_scene_receiver_info_draw_widget(SubGhz* subghz) {
// Removed static check // Removed static check
if(((subghz->txrx->decoder_result->protocol->flag & SubGhzProtocolFlag_Send) == if(((subghz->txrx->decoder_result->protocol->flag & SubGhzProtocolFlag_Send) ==
SubGhzProtocolFlag_Send) && SubGhzProtocolFlag_Send) &&
// disable "Send" for auto-captured RAW signals for now. They can still be saved and sent by loading them.
subghz->txrx->decoder_result->protocol->type != SubGhzProtocolTypeRAW &&
subghz->txrx->decoder_result->protocol->encoder->deserialize) { subghz->txrx->decoder_result->protocol->encoder->deserialize) {
widget_add_button_element( widget_add_button_element(
subghz->widget, subghz->widget,

View File

@ -34,7 +34,7 @@ static const Icon* ReceiverItemIcons[] = {
[SubGhzProtocolTypeUnknown] = &I_Quest_7x8, [SubGhzProtocolTypeUnknown] = &I_Quest_7x8,
[SubGhzProtocolTypeStatic] = &I_Static_9x7, [SubGhzProtocolTypeStatic] = &I_Static_9x7,
[SubGhzProtocolTypeDynamic] = &I_Dynamic_9x7, [SubGhzProtocolTypeDynamic] = &I_Dynamic_9x7,
[SubGhzProtocolTypeRAW] = &I_Raw_9x7, [SubGhzProtocolTypeBinRAW] = &I_Raw_9x7,
}; };
typedef enum { typedef enum {

View File

@ -636,11 +636,11 @@ Function,+,canvas_draw_xbm,void,"Canvas*, uint8_t, uint8_t, uint8_t, uint8_t, co
Function,-,canvas_frame_set,void,"Canvas*, uint8_t, uint8_t, uint8_t, uint8_t" Function,-,canvas_frame_set,void,"Canvas*, uint8_t, uint8_t, uint8_t, uint8_t"
Function,-,canvas_free,void,Canvas* Function,-,canvas_free,void,Canvas*
Function,+,canvas_get_buffer,uint8_t*,Canvas* Function,+,canvas_get_buffer,uint8_t*,Canvas*
Function,+,canvas_get_buffer_size,size_t,Canvas* Function,+,canvas_get_buffer_size,size_t,const Canvas*
Function,+,canvas_get_font_params,CanvasFontParameters*,"Canvas*, Font" Function,+,canvas_get_font_params,const CanvasFontParameters*,"const Canvas*, Font"
Function,-,canvas_get_orientation,CanvasOrientation,const Canvas* Function,-,canvas_get_orientation,CanvasOrientation,const Canvas*
Function,+,canvas_glyph_width,uint8_t,"Canvas*, char" Function,+,canvas_glyph_width,uint8_t,"Canvas*, char"
Function,+,canvas_height,uint8_t,Canvas* Function,+,canvas_height,uint8_t,const Canvas*
Function,-,canvas_init,Canvas*, Function,-,canvas_init,Canvas*,
Function,+,canvas_invert_color,void,Canvas* Function,+,canvas_invert_color,void,Canvas*
Function,+,canvas_reset,void,Canvas* Function,+,canvas_reset,void,Canvas*
@ -2666,6 +2666,15 @@ Function,-,subghz_protocol_decoder_bett_get_hash_data,uint8_t,void*
Function,-,subghz_protocol_decoder_bett_get_string,void,"void*, FuriString*" Function,-,subghz_protocol_decoder_bett_get_string,void,"void*, FuriString*"
Function,-,subghz_protocol_decoder_bett_reset,void,void* Function,-,subghz_protocol_decoder_bett_reset,void,void*
Function,-,subghz_protocol_decoder_bett_serialize,_Bool,"void*, FlipperFormat*, SubGhzRadioPreset*" Function,-,subghz_protocol_decoder_bett_serialize,_Bool,"void*, FlipperFormat*, SubGhzRadioPreset*"
Function,-,subghz_protocol_decoder_bin_raw_alloc,void*,SubGhzEnvironment*
Function,-,subghz_protocol_decoder_bin_raw_data_input_rssi,void,"SubGhzProtocolDecoderBinRAW*, float"
Function,-,subghz_protocol_decoder_bin_raw_deserialize,_Bool,"void*, FlipperFormat*"
Function,-,subghz_protocol_decoder_bin_raw_feed,void,"void*, _Bool, uint32_t"
Function,-,subghz_protocol_decoder_bin_raw_free,void,void*
Function,-,subghz_protocol_decoder_bin_raw_get_hash_data,uint8_t,void*
Function,-,subghz_protocol_decoder_bin_raw_get_string,void,"void*, FuriString*"
Function,-,subghz_protocol_decoder_bin_raw_reset,void,void*
Function,-,subghz_protocol_decoder_bin_raw_serialize,_Bool,"void*, FlipperFormat*, SubGhzRadioPreset*"
Function,-,subghz_protocol_decoder_came_alloc,void*,SubGhzEnvironment* Function,-,subghz_protocol_decoder_came_alloc,void*,SubGhzEnvironment*
Function,-,subghz_protocol_decoder_came_atomo_alloc,void*,SubGhzEnvironment* Function,-,subghz_protocol_decoder_came_atomo_alloc,void*,SubGhzEnvironment*
Function,-,subghz_protocol_decoder_came_atomo_deserialize,_Bool,"void*, FlipperFormat*" Function,-,subghz_protocol_decoder_came_atomo_deserialize,_Bool,"void*, FlipperFormat*"
@ -2978,6 +2987,11 @@ Function,-,subghz_protocol_encoder_bett_deserialize,_Bool,"void*, FlipperFormat*
Function,-,subghz_protocol_encoder_bett_free,void,void* Function,-,subghz_protocol_encoder_bett_free,void,void*
Function,-,subghz_protocol_encoder_bett_stop,void,void* Function,-,subghz_protocol_encoder_bett_stop,void,void*
Function,-,subghz_protocol_encoder_bett_yield,LevelDuration,void* Function,-,subghz_protocol_encoder_bett_yield,LevelDuration,void*
Function,-,subghz_protocol_encoder_bin_raw_alloc,void*,SubGhzEnvironment*
Function,-,subghz_protocol_encoder_bin_raw_deserialize,_Bool,"void*, FlipperFormat*"
Function,-,subghz_protocol_encoder_bin_raw_free,void,void*
Function,-,subghz_protocol_encoder_bin_raw_stop,void,void*
Function,-,subghz_protocol_encoder_bin_raw_yield,LevelDuration,void*
Function,-,subghz_protocol_encoder_came_alloc,void*,SubGhzEnvironment* Function,-,subghz_protocol_encoder_came_alloc,void*,SubGhzEnvironment*
Function,-,subghz_protocol_encoder_came_atomo_alloc,void*,SubGhzEnvironment* Function,-,subghz_protocol_encoder_came_atomo_alloc,void*,SubGhzEnvironment*
Function,-,subghz_protocol_encoder_came_atomo_deserialize,_Bool,"void*, FlipperFormat*" Function,-,subghz_protocol_encoder_came_atomo_deserialize,_Bool,"void*, FlipperFormat*"
@ -4889,6 +4903,9 @@ Variable,-,subghz_protocol_ansonic_encoder,const SubGhzProtocolEncoder,
Variable,-,subghz_protocol_bett,const SubGhzProtocol, Variable,-,subghz_protocol_bett,const SubGhzProtocol,
Variable,-,subghz_protocol_bett_decoder,const SubGhzProtocolDecoder, Variable,-,subghz_protocol_bett_decoder,const SubGhzProtocolDecoder,
Variable,-,subghz_protocol_bett_encoder,const SubGhzProtocolEncoder, Variable,-,subghz_protocol_bett_encoder,const SubGhzProtocolEncoder,
Variable,-,subghz_protocol_bin_raw,const SubGhzProtocol,
Variable,-,subghz_protocol_bin_raw_decoder,const SubGhzProtocolDecoder,
Variable,-,subghz_protocol_bin_raw_encoder,const SubGhzProtocolEncoder,
Variable,-,subghz_protocol_came,const SubGhzProtocol, Variable,-,subghz_protocol_came,const SubGhzProtocol,
Variable,-,subghz_protocol_came_atomo,const SubGhzProtocol, Variable,-,subghz_protocol_came_atomo,const SubGhzProtocol,
Variable,-,subghz_protocol_came_atomo_decoder,const SubGhzProtocolDecoder, Variable,-,subghz_protocol_came_atomo_decoder,const SubGhzProtocolDecoder,

1 entry status name type params
636 Function - canvas_frame_set void Canvas*, uint8_t, uint8_t, uint8_t, uint8_t
637 Function - canvas_free void Canvas*
638 Function + canvas_get_buffer uint8_t* Canvas*
639 Function + canvas_get_buffer_size size_t Canvas* const Canvas*
640 Function + canvas_get_font_params CanvasFontParameters* const CanvasFontParameters* Canvas*, Font const Canvas*, Font
641 Function - canvas_get_orientation CanvasOrientation const Canvas*
642 Function + canvas_glyph_width uint8_t Canvas*, char
643 Function + canvas_height uint8_t Canvas* const Canvas*
644 Function - canvas_init Canvas*
645 Function + canvas_invert_color void Canvas*
646 Function + canvas_reset void Canvas*
2666 Function - subghz_protocol_decoder_bett_get_string void void*, FuriString*
2667 Function - subghz_protocol_decoder_bett_reset void void*
2668 Function - subghz_protocol_decoder_bett_serialize _Bool void*, FlipperFormat*, SubGhzRadioPreset*
2669 Function - subghz_protocol_decoder_bin_raw_alloc void* SubGhzEnvironment*
2670 Function - subghz_protocol_decoder_bin_raw_data_input_rssi void SubGhzProtocolDecoderBinRAW*, float
2671 Function - subghz_protocol_decoder_bin_raw_deserialize _Bool void*, FlipperFormat*
2672 Function - subghz_protocol_decoder_bin_raw_feed void void*, _Bool, uint32_t
2673 Function - subghz_protocol_decoder_bin_raw_free void void*
2674 Function - subghz_protocol_decoder_bin_raw_get_hash_data uint8_t void*
2675 Function - subghz_protocol_decoder_bin_raw_get_string void void*, FuriString*
2676 Function - subghz_protocol_decoder_bin_raw_reset void void*
2677 Function - subghz_protocol_decoder_bin_raw_serialize _Bool void*, FlipperFormat*, SubGhzRadioPreset*
2678 Function - subghz_protocol_decoder_came_alloc void* SubGhzEnvironment*
2679 Function - subghz_protocol_decoder_came_atomo_alloc void* SubGhzEnvironment*
2680 Function - subghz_protocol_decoder_came_atomo_deserialize _Bool void*, FlipperFormat*
2987 Function - subghz_protocol_encoder_bett_free void void*
2988 Function - subghz_protocol_encoder_bett_stop void void*
2989 Function - subghz_protocol_encoder_bett_yield LevelDuration void*
2990 Function - subghz_protocol_encoder_bin_raw_alloc void* SubGhzEnvironment*
2991 Function - subghz_protocol_encoder_bin_raw_deserialize _Bool void*, FlipperFormat*
2992 Function - subghz_protocol_encoder_bin_raw_free void void*
2993 Function - subghz_protocol_encoder_bin_raw_stop void void*
2994 Function - subghz_protocol_encoder_bin_raw_yield LevelDuration void*
2995 Function - subghz_protocol_encoder_came_alloc void* SubGhzEnvironment*
2996 Function - subghz_protocol_encoder_came_atomo_alloc void* SubGhzEnvironment*
2997 Function - subghz_protocol_encoder_came_atomo_deserialize _Bool void*, FlipperFormat*
4903 Variable - subghz_protocol_bett const SubGhzProtocol
4904 Variable - subghz_protocol_bett_decoder const SubGhzProtocolDecoder
4905 Variable - subghz_protocol_bett_encoder const SubGhzProtocolEncoder
4906 Variable - subghz_protocol_bin_raw const SubGhzProtocol
4907 Variable - subghz_protocol_bin_raw_decoder const SubGhzProtocolDecoder
4908 Variable - subghz_protocol_bin_raw_encoder const SubGhzProtocolEncoder
4909 Variable - subghz_protocol_came const SubGhzProtocol
4910 Variable - subghz_protocol_came_atomo const SubGhzProtocol
4911 Variable - subghz_protocol_came_atomo_decoder const SubGhzProtocolDecoder

View File

@ -111,7 +111,7 @@ const SubGhzProtocolEncoder subghz_protocol_bin_raw_encoder = {
const SubGhzProtocol subghz_protocol_bin_raw = { const SubGhzProtocol subghz_protocol_bin_raw = {
.name = SUBGHZ_PROTOCOL_BIN_RAW_NAME, .name = SUBGHZ_PROTOCOL_BIN_RAW_NAME,
.type = SubGhzProtocolTypeStatic, .type = SubGhzProtocolTypeBinRAW,
#ifdef BIN_RAW_DEBUG #ifdef BIN_RAW_DEBUG
.flag = SubGhzProtocolFlag_433 | SubGhzProtocolFlag_315 | SubGhzProtocolFlag_868 | .flag = SubGhzProtocolFlag_433 | SubGhzProtocolFlag_315 | SubGhzProtocolFlag_868 |
SubGhzProtocolFlag_AM | SubGhzProtocolFlag_FM | SubGhzProtocolFlag_Decodable | SubGhzProtocolFlag_AM | SubGhzProtocolFlag_FM | SubGhzProtocolFlag_Decodable |

View File

@ -77,6 +77,7 @@ typedef enum {
SubGhzProtocolTypeRAW, SubGhzProtocolTypeRAW,
SubGhzProtocolWeatherStation, SubGhzProtocolWeatherStation,
SubGhzProtocolCustom, SubGhzProtocolCustom,
SubGhzProtocolTypeBinRAW,
} SubGhzProtocolType; } SubGhzProtocolType;
typedef enum { typedef enum {