mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-24 10:47:20 +00:00
WIP and taking Notes, trunk'd
This commit is contained in:
@@ -293,19 +293,6 @@ template <typename T> bool LR11x0Interface<T>::isActivelyReceiving()
|
||||
RADIOLIB_LR11X0_IRQ_PREAMBLE_DETECTED);
|
||||
}
|
||||
|
||||
template <typename T> void LR11x0Interface<T>::regulateFan()
|
||||
{
|
||||
float pa_temp = 0;
|
||||
lora.getTemp(&pa_temp);
|
||||
if (pa_temp > 40) {
|
||||
pa_fan_percentage = max(pa_fan_percentage + 1, 100);
|
||||
enableFan();
|
||||
} else {
|
||||
pa_fan_percentage = max(pa_fan_percentage - 1, 100);
|
||||
enableFan();
|
||||
}
|
||||
}
|
||||
|
||||
template <typename T> bool LR11x0Interface<T>::sleep()
|
||||
{
|
||||
// \todo Display actual typename of the adapter, not just `LR11x0`
|
||||
|
||||
@@ -65,7 +65,5 @@ template <class T> class LR11x0Interface : public RadioLibInterface
|
||||
virtual void addReceiveMetadata(meshtastic_MeshPacket *mp) override;
|
||||
|
||||
virtual void setStandby() override;
|
||||
|
||||
void regulateFan();
|
||||
};
|
||||
#endif
|
||||
@@ -137,7 +137,7 @@ class RadioLibInterface : public RadioInterface, protected concurrency::Notified
|
||||
|
||||
/** Attempt to find a packet in the TxQueue. Returns true if the packet was found. */
|
||||
virtual bool findInTxQueue(NodeNum from, PacketId id) override;
|
||||
|
||||
|
||||
void enableFan();
|
||||
void disableFan();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user