mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-04 12:44:40 +00:00
Fix build error for none RAK2560 devices
This commit is contained in:
parent
d7c52c33b9
commit
5e01b4251f
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user