update board definition, update copy/paste errors, fix SX1280.

This commit is contained in:
Thomas Göttgens
2022-11-27 14:03:50 +01:00
parent 88c3ab2636
commit bd2bfd6822
9 changed files with 59 additions and 52 deletions

View File

@@ -1,7 +1,5 @@
#pragma once
#if defined(RADIOLIB_GODMODE)
#include "RadioLibInterface.h"
/**
@@ -19,6 +17,8 @@ class SX128xInterface : public RadioLibInterface
/// \return true if initialisation succeeded.
virtual bool init() override;
virtual bool wideLora() override;
/// Apply any radio provisioning changes
/// Make sure the Driver is properly configured before calling init().
/// \return true if initialisation succeeded.
@@ -27,9 +27,11 @@ class SX128xInterface : public RadioLibInterface
/// Prepare hardware for sleep. Call this _only_ for deep sleep, not needed for light sleep.
virtual bool sleep() override;
protected:
#ifdef RADIOLIB_GODMODE
bool isIRQPending() override { return lora.getIrqStatus() != 0; }
#endif
float currentLimit = 140; // Higher OCP limit for SX128x PA
protected:
/**
* Specific module instance
@@ -71,5 +73,3 @@ class SX128xInterface : public RadioLibInterface
private:
};
#endif