[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:
Albert Kharisov
2022-01-10 21:13:41 +04:00
committed by GitHub
parent 389ff92cc1
commit 990a065bd0
22 changed files with 1980 additions and 917 deletions

View File

@@ -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);