mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 12:42:30 +04:00
Allow BinRaw & some clean
This commit is contained in:
@@ -9,11 +9,13 @@ typedef enum {
|
|||||||
} SubRemEditMenuState;
|
} SubRemEditMenuState;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
// SubmenuIndex
|
// StartSubmenuIndex
|
||||||
SubmenuIndexSubRemEditMapFile = 0,
|
SubmenuIndexSubRemEditMapFile = 0,
|
||||||
SubmenuIndexSubRemNewMapFile,
|
SubmenuIndexSubRemNewMapFile,
|
||||||
|
#if FURI_DEBUG
|
||||||
SubmenuIndexSubRemRemoteView,
|
SubmenuIndexSubRemRemoteView,
|
||||||
SubmenuIndexSubRemAbout,
|
#endif
|
||||||
|
// SubmenuIndexSubRemAbout,
|
||||||
|
|
||||||
// EditSubmenuIndex
|
// EditSubmenuIndex
|
||||||
EditSubmenuIndexEditLabel,
|
EditSubmenuIndexEditLabel,
|
||||||
@@ -45,8 +47,4 @@ typedef enum {
|
|||||||
SubRemCustomEventSceneEditPreviewSaved,
|
SubRemCustomEventSceneEditPreviewSaved,
|
||||||
|
|
||||||
SubRemCustomEventSceneNewName,
|
SubRemCustomEventSceneNewName,
|
||||||
|
|
||||||
// // SceneStates
|
|
||||||
// SubRemSceneOpenMapFileStateOpen,
|
|
||||||
// SubRemSceneOpenMapFileStateEdit,
|
|
||||||
} SubRemCustomEvent;
|
} SubRemCustomEvent;
|
||||||
@@ -147,8 +147,7 @@ SubRemLoadSubState subrem_sub_preset_load(
|
|||||||
if(protocol->flag & SubGhzProtocolFlag_Send) {
|
if(protocol->flag & SubGhzProtocolFlag_Send) {
|
||||||
if((protocol->type == SubGhzProtocolTypeStatic) ||
|
if((protocol->type == SubGhzProtocolTypeStatic) ||
|
||||||
(protocol->type == SubGhzProtocolTypeDynamic) ||
|
(protocol->type == SubGhzProtocolTypeDynamic) ||
|
||||||
// TODO: BINRAW It probably works, but checks are needed.
|
(protocol->type == SubGhzProtocolTypeBinRAW) ||
|
||||||
// (protocol->type == SubGhzProtocolTypeBinRAW) ||
|
|
||||||
(protocol->type == SubGhzProtocolTypeRAW)) {
|
(protocol->type == SubGhzProtocolTypeRAW)) {
|
||||||
sub_preset->type = protocol->type;
|
sub_preset->type = protocol->type;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -23,10 +23,6 @@
|
|||||||
|
|
||||||
#include <flipper_format/flipper_format_i.h>
|
#include <flipper_format/flipper_format_i.h>
|
||||||
|
|
||||||
#include <lib/subghz/subghz_setting.h>
|
|
||||||
#include <lib/subghz/receiver.h>
|
|
||||||
#include <lib/subghz/transmitter.h>
|
|
||||||
|
|
||||||
#define SUBREM_APP_FOLDER EXT_PATH("subghz_remote")
|
#define SUBREM_APP_FOLDER EXT_PATH("subghz_remote")
|
||||||
#define SUBREM_MAX_LEN_NAME 64
|
#define SUBREM_MAX_LEN_NAME 64
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
// SubmenuIndex
|
// StartSubmenuIndex
|
||||||
SubmenuIndexSubRemOpenMapFile = 0,
|
SubmenuIndexSubRemOpenMapFile = 0,
|
||||||
#if FURI_DEBUG
|
#if FURI_DEBUG
|
||||||
SubmenuIndexSubRemRemoteView,
|
SubmenuIndexSubRemRemoteView,
|
||||||
|
|||||||
@@ -147,8 +147,7 @@ SubRemLoadSubState subrem_sub_preset_load(
|
|||||||
if(protocol->flag & SubGhzProtocolFlag_Send) {
|
if(protocol->flag & SubGhzProtocolFlag_Send) {
|
||||||
if((protocol->type == SubGhzProtocolTypeStatic) ||
|
if((protocol->type == SubGhzProtocolTypeStatic) ||
|
||||||
(protocol->type == SubGhzProtocolTypeDynamic) ||
|
(protocol->type == SubGhzProtocolTypeDynamic) ||
|
||||||
// TODO: BINRAW It probably works, but checks are needed.
|
(protocol->type == SubGhzProtocolTypeBinRAW) ||
|
||||||
// (protocol->type == SubGhzProtocolTypeBinRAW) ||
|
|
||||||
(protocol->type == SubGhzProtocolTypeRAW)) {
|
(protocol->type == SubGhzProtocolTypeRAW)) {
|
||||||
sub_preset->type = protocol->type;
|
sub_preset->type = protocol->type;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user