diff --git a/src/raspberrypi/devices/device.h b/src/raspberrypi/devices/device.h index 03df3b2f..b2f069f2 100644 --- a/src/raspberrypi/devices/device.h +++ b/src/raspberrypi/devices/device.h @@ -167,7 +167,7 @@ public: const string GetPaddedName() const; bool SupportsParams() const { return supports_params; } - bool SupportsFile() const { return !supports_params; } + virtual bool SupportsFile() const { return !supports_params; } void SupportsParams(bool supports_paams) { this->supports_params = supports_paams; } const unordered_map GetParams() const { return params; } const string GetParam(const string&); diff --git a/src/raspberrypi/devices/host_services.h b/src/raspberrypi/devices/host_services.h index 28a0292c..73c21325 100644 --- a/src/raspberrypi/devices/host_services.h +++ b/src/raspberrypi/devices/host_services.h @@ -32,6 +32,8 @@ public: int ModeSense6(const DWORD *, BYTE *); int ModeSense10(const DWORD *, BYTE *, int); + bool SupportsFile() const override { return false; } + private: typedef ModePageDevice super;