mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Device: Report whether the current driver supports DFU
This commit is contained in:
@@ -210,6 +210,11 @@ public:
|
|||||||
NODISCARD("If the Lifetime is not held, disconnects will be immediately unsuppressed")
|
NODISCARD("If the Lifetime is not held, disconnects will be immediately unsuppressed")
|
||||||
Lifetime suppressDisconnects();
|
Lifetime suppressDisconnects();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Some alternate communication protocols do not support DFU
|
||||||
|
*/
|
||||||
|
virtual bool currentDriverSupportsDFU() const { return true; }
|
||||||
|
|
||||||
const device_eventhandler_t& getEventHandler() const { return report; }
|
const device_eventhandler_t& getEventHandler() const { return report; }
|
||||||
|
|
||||||
std::shared_ptr<Communication> com;
|
std::shared_ptr<Communication> com;
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ public:
|
|||||||
productId = PRODUCT_ID;
|
productId = PRODUCT_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool currentDriverSupportsDFU() const override { return false; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void setupSettings(IDeviceSettings& ssettings) override {
|
void setupSettings(IDeviceSettings& ssettings) override {
|
||||||
// TODO Check firmware version, old firmwares will reset Ethernet settings on settings send
|
// TODO Check firmware version, old firmwares will reset Ethernet settings on settings send
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ public:
|
|||||||
return supportedNetworks;
|
return supportedNetworks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool currentDriverSupportsDFU() const override { return false; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void setupSupportedRXNetworks(std::vector<Network>& rxNetworks) override {
|
virtual void setupSupportedRXNetworks(std::vector<Network>& rxNetworks) override {
|
||||||
for(auto& netid : GetSupportedNetworks())
|
for(auto& netid : GetSupportedNetworks())
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ public:
|
|||||||
return supportedNetworks;
|
return supportedNetworks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool currentDriverSupportsDFU() const override { return false; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void setupSupportedRXNetworks(std::vector<Network>& rxNetworks) override {
|
virtual void setupSupportedRXNetworks(std::vector<Network>& rxNetworks) override {
|
||||||
for(auto& netid : GetSupportedNetworks())
|
for(auto& netid : GetSupportedNetworks())
|
||||||
|
|||||||
Reference in New Issue
Block a user