mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
[FL-1929, FL-2164] IR App migrate to FFF (#949)
* IR app move to FFF * [FL-2164] Hide unimplemented submenus * Fix brute force fail * Fix FFF endless reading * Reformat TV bruteforce lib to FFF * fixes & cleanup * Infrared: switch to constexpr. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -20,6 +20,11 @@ public:
|
||||
: name(name)
|
||||
, signal(signal) {
|
||||
}
|
||||
|
||||
IrdaAppRemoteButton(const char* name, IrdaAppSignal&& signal)
|
||||
: name(name)
|
||||
, signal(std::move(signal)) {
|
||||
}
|
||||
~IrdaAppRemoteButton() {
|
||||
}
|
||||
};
|
||||
@@ -47,8 +52,8 @@ class IrdaAppRemoteManager {
|
||||
std::string make_remote_name(const std::string& full_name) const;
|
||||
|
||||
public:
|
||||
static inline const uint32_t max_button_name_length = 22;
|
||||
static inline const uint32_t max_remote_name_length = 22;
|
||||
static constexpr const uint32_t max_button_name_length = 22;
|
||||
static constexpr const uint32_t max_remote_name_length = 22;
|
||||
bool add_remote_with_button(const char* button_name, const IrdaAppSignal& signal);
|
||||
bool add_button(const char* button_name, const IrdaAppSignal& signal);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user