Implement forgetting WiFi APs (#116)

.. and fix the simulator build
This commit is contained in:
Ken Van Hoeylandt
2024-12-09 23:37:21 +01:00
committed by GitHub
parent 80245e08fa
commit 103588948f
8 changed files with 166 additions and 80 deletions
@@ -0,0 +1,25 @@
#pragma once
#include "hal/Power.h"
#include <memory>
using namespace tt::hal;
class SimulatorPower : public Power {
bool allowedToCharge = false;
public:
SimulatorPower() {}
~SimulatorPower() {}
bool supportsMetric(MetricType type) const override;
bool getMetric(Power::MetricType type, Power::MetricData& data) override;
bool supportsChargeControl() const { return true; }
bool isAllowedToCharge() const { return allowedToCharge; }
void setAllowedToCharge(bool canCharge) { allowedToCharge = canCharge; }
};
std::shared_ptr<Power> simulatorPower();