Fix build error for none RAK2560 devices

pull/4117/head
beegee-tokyo 2024-06-16 15:46:37 +08:00
rodzic d7c52c33b9
commit 5e01b4251f
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,4 @@
#ifdef HAS_RAKPROT
#include "RAK9154Sensor.h"
#include "../mesh/generated/meshtastic/telemetry.pb.h"
#include "TelemetrySensor.h"
@ -187,3 +188,4 @@ bool RAK9154Sensor::isCharging()
{
return (dc_cur > 0) ? true : false;
}
#endif // HAS_RAKPROT

Wyświetl plik

@ -1,3 +1,4 @@
#ifdef HAS_RAKPROT
#include "../mesh/generated/meshtastic/telemetry.pb.h"
#include "TelemetrySensor.h"
#include "VoltageSensor.h"
@ -15,4 +16,5 @@ class RAK9154Sensor : public TelemetrySensor, VoltageSensor
virtual uint16_t getBusVoltageMv() override;
int getBusBatteryPercent();
bool isCharging();
};
};
#endif // HAS_RAKPROT