Keep Full RAK Companion within flash using integer airtime blocks
This commit is contained in:
1 parent
1be8d88435
commit
e0442880e1
5 files changed
+70
-7
No files matched your search
@@ -155,9 +155,11 @@ class ForwardingProfileTimingTests(unittest.TestCase):
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
#include <RadioProfiles.h>
|
||||
#include <Packet.h>
|
||||
class RadioLibWrapper {
|
||||
public:
|
||||
mesh::RadioProfiles _profiles;
|
||||
bool validateProfile(const mesh::RadioProfileParams& p) const { return mesh::RadioProfiles::valid(p); }
|
||||
unsigned legacy_calls = 0;
|
||||
uint32_t getEstAirtimeFor(int length) { ++legacy_calls; return uint32_t(17 * length + 3); }
|
||||
uint16_t profilePreamble(uint8_t profile) { return _profiles.params(profile).preamble; }
|
||||
|
||||
Reference in new issue
Block a user