mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-11 07:57:22 +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()
|
template <typename T> void LR11x0Interface<T>::regulateFan()
|
||||||
{
|
{
|
||||||
float *pa_temp = 0;
|
float pa_temp = 0;
|
||||||
lora.getTemp(pa_temp);
|
lora.getTemp(&pa_temp);
|
||||||
if (*pa_temp > 40) {
|
if (pa_temp > 40) {
|
||||||
pa_fan_percentage = max(pa_fan_percentage + 1, 100);
|
pa_fan_percentage = max(pa_fan_percentage + 1, 100);
|
||||||
enableFan();
|
enableFan();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user