Allow frequency override in Playlist, Folder fixes (#1194)

* Allow frequency to be changed per-entry

* Folder fixes, use TX freq

---------

Co-authored-by: kallanreed <kallanreed@noreply.github.com>
This commit is contained in:
Kyle Reed
2023-06-26 10:44:01 -07:00
committed by GitHub
parent 3f8a4957af
commit faa4367295
4 changed files with 45 additions and 15 deletions

View File

@@ -34,6 +34,17 @@ class Optional {
constexpr Optional(T&& value)
: value_{std::move(value)}, valid_{true} {}
constexpr Optional& operator=(const T& value) {
value_ = value;
valid_ = true;
return *this;
}
constexpr Optional& operator=(T&& value) {
value_ = std::move(value);
valid_ = true;
return *this;
}
bool is_valid() const { return valid_; }
operator bool() const { return valid_; }