PiPedal 1.2.33 initial commit

This commit is contained in:
Robin Davies
2024-08-08 12:53:02 -04:00
parent 0e378997a5
commit a3847c8184
255 changed files with 22008 additions and 1791 deletions
+16
View File
@@ -0,0 +1,16 @@
#include "WifiRegulations.hpp"
using namespace pipedal;
const WifiRule*WifiRegulations::GetRule(int32_t frequencyMhz) const
{
int32_t frequencyKhz = frequencyMhz*1000;
for (const auto&rule: rules) {
if (frequencyKhz >= rule.start_freq_khz && frequencyKhz < rule.end_freq_khz)
{
return &rule;
}
}
return nullptr;
}