Resolve issue #1 undefined symbols when building on POSIX systems

This commit is contained in:
Paul Hollinsky
2019-01-11 13:01:19 -05:00
parent 122c54b2ff
commit c313801a21
11 changed files with 142 additions and 109 deletions
@@ -21,10 +21,13 @@ public:
return found;
}
static constexpr Network::NetID SUPPORTED_NETWORKS[] = {
Network::NetID::HSCAN,
Network::NetID::HSCAN2
};
static const std::vector<Network>& GetSupportedNetworks() {
static std::vector<Network> supportedNetworks = {
Network::NetID::HSCAN,
Network::NetID::HSCAN2
};
return supportedNetworks;
}
private:
NeoOBD2PRO(neodevice_t neodevice) : Device(neodevice) {
@@ -34,7 +37,7 @@ private:
}
virtual void setupSupportedRXNetworks(std::vector<Network>& rxNetworks) override {
for(auto& netid : SUPPORTED_NETWORKS)
for(auto& netid : GetSupportedNetworks())
rxNetworks.emplace_back(netid);
}