mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-12 03:15:08 +00:00
Move RF amp control code into new class.
This commit is contained in:
@@ -281,29 +281,24 @@ private:
|
||||
};
|
||||
};
|
||||
|
||||
class RFAmpField : public NumberField {
|
||||
public:
|
||||
RFAmpField(Point parent_pos);
|
||||
};
|
||||
|
||||
class RadioGainOptionsView : public View {
|
||||
public:
|
||||
std::function<void(bool)> on_change_rf_amp;
|
||||
|
||||
RadioGainOptionsView(const Rect parent_rect, const Style* const style);
|
||||
|
||||
void set_rf_amp(int32_t v_db);
|
||||
|
||||
private:
|
||||
Text label_rf_amp {
|
||||
{ 0 * 8, 0 * 16, 3 * 8, 1 * 16 },
|
||||
"Amp"
|
||||
};
|
||||
|
||||
NumberField field_rf_amp {
|
||||
RFAmpField field_rf_amp {
|
||||
{ 4 * 8, 0 * 16},
|
||||
1,
|
||||
{ 0, 1 },
|
||||
1,
|
||||
' ',
|
||||
};
|
||||
|
||||
void on_rf_amp_changed(bool enable);
|
||||
};
|
||||
|
||||
class LNAGainField : public NumberField {
|
||||
|
||||
Reference in New Issue
Block a user