Allow settings to be marked as readonly

In the case of the FIRE 2 ethernet, we're waiting on a bug fix in firmware before we re-enable writing.
In the meantime, setting settings over ethernet crashes the ethernet driver.
This commit is contained in:
Paul Hollinsky
2018-10-10 16:28:00 -04:00
parent 5d4cfe4930
commit ba82c51914
3 changed files with 15 additions and 0 deletions
@@ -18,6 +18,7 @@ public:
auto decoder = std::unique_ptr<Decoder>(new Decoder());
com = std::make_shared<Communication>(std::move(transport), packetizer, std::move(encoder), std::move(decoder));
settings = std::unique_ptr<IDeviceSettings>(new NeoVIFIRE2Settings(com));
settings->readonly = true;
productId = PRODUCT_ID;
}