mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-27 16:17:31 -04:00
Temperature scaling changes for HackRF r9 (MAX2839) (#1561)
* Add files via upload * Add files via upload * Add files via upload
This commit is contained in:
parent
6784fe72dd
commit
68f960e4e7
9 changed files with 19 additions and 17 deletions
|
@ -124,8 +124,8 @@ void TemperatureWidget::paint(Painter& painter) {
|
|||
}
|
||||
|
||||
TemperatureWidget::temperature_t TemperatureWidget::temperature(const sample_t sensor_value) const {
|
||||
/*It seems to be a temperature difference of 25C*/
|
||||
return -40 + (sensor_value * 4.31) + 25; // max2837 datasheet temp 25ºC has sensor value: 15
|
||||
// Scaling is different for MAX2837 vs MAX2839 so it's now done in the respective chip-specific module
|
||||
return sensor_value;
|
||||
}
|
||||
|
||||
std::string TemperatureWidget::temperature_str(const temperature_t temperature) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue