mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-10 23:47:12 +00:00
fix nullptr
This commit is contained in:
parent
8d1674c3e5
commit
d04509bbf0
@ -280,9 +280,9 @@ template <typename T> bool LR11x0Interface<T>::isActivelyReceiving()
|
||||
|
||||
template <typename T> void LR11x0Interface<T>::regulateFan()
|
||||
{
|
||||
float *pa_temp = 0;
|
||||
lora.getTemp(pa_temp);
|
||||
if (*pa_temp > 40) {
|
||||
float pa_temp = 0;
|
||||
lora.getTemp(&pa_temp);
|
||||
if (pa_temp > 40) {
|
||||
pa_fan_percentage = max(pa_fan_percentage + 1, 100);
|
||||
enableFan();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user