Fix fan oscillation trait not being used (#1048)

This commit is contained in:
Jim Persson 2020-05-19 00:14:20 +02:00 committed by GitHub
parent 26d6738abb
commit 53986279d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ namespace fan {
class FanTraits {
public:
FanTraits() = default;
FanTraits(bool oscillation, bool speed) : oscillation_(false), speed_(speed) {}
FanTraits(bool oscillation, bool speed) : oscillation_(oscillation), speed_(speed) {}
/// Return if this fan supports oscillation.
bool supports_oscillation() const { return this->oscillation_; }