mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-22 05:44:31 -04:00
Realize the automatic recognition of audio chip, including ak4951en/wm8731/wm8731s,Try to fix the max2837 temperature problem
This commit is contained in:
parent
603b7fb1ab
commit
a0eaa70ff4
2 changed files with 12 additions and 8 deletions
|
@ -121,7 +121,8 @@ void TemperatureWidget::paint(Painter& painter) {
|
|||
}
|
||||
|
||||
TemperatureWidget::temperature_t TemperatureWidget::temperature(const sample_t sensor_value) const {
|
||||
return -35 + sensor_value * 4; //max2837 datasheet temp 25ºC has sensor value: 15
|
||||
/*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
|
||||
}
|
||||
|
||||
std::string TemperatureWidget::temperature_str(const temperature_t temperature) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue