Added access to min/med/max values

This commit is contained in:
GullCode 2022-09-11 16:08:40 +02:00
parent 5d5865eefb
commit fe4bc7902f
2 changed files with 18 additions and 0 deletions

View File

@ -80,6 +80,21 @@ void RSSI::paint(Painter& painter) {
}
}
int32_t RSSI::get_min()
{
return min_ ;
}
int32_t RSSI::get_avg()
{
return avg_ ;
}
int32_t RSSI::get_max()
{
return max_ ;
}
void RSSI::set_pitch_rssi(bool enabled) {
pitch_rssi_enabled = enabled;
if (!enabled) baseband::set_pitch_rssi(0, false);

View File

@ -46,6 +46,9 @@ public:
}
void paint(Painter& painter) override;
int32_t get_min();
int32_t get_avg();
int32_t get_max();
private:
int32_t min_;