WIP and taking Notes, trunk'd

This commit is contained in:
Thomas Göttgens
2025-03-02 12:22:15 +01:00
parent 9c3ceaf6e9
commit dcabb85000
5 changed files with 45 additions and 24 deletions

View File

@@ -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`

View File

@@ -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

View File

@@ -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();