commit | 908a0a2d6b54d5e536fe9a357ab8d456b62e7ec5 | [log] [tgz] |
---|---|---|
author | Hayden Gomes <haydengomes@google.com> | Tue Apr 28 15:12:19 2020 -0700 |
committer | Hayden Gomes <haydengomes@google.com> | Tue Apr 28 15:12:19 2020 -0700 |
tree | 76dba9816134e293b37a2aff95049d5c6c06a191 | |
parent | 02397292628705eac7c07521596197d251f20cb3 [diff] |
Fix AudioControl@2.0 fade check Fade now checks isValidValue rather than !isValidValue Bug: 155225937 Test: built ran and adjusted fade Change-Id: I21b0dee8ebd677217b037c38cc744a77cf145709
diff --git a/automotive/audiocontrol/2.0/default/AudioControl.cpp b/automotive/audiocontrol/2.0/default/AudioControl.cpp index 5bde839..b7c11cd 100644 --- a/automotive/audiocontrol/2.0/default/AudioControl.cpp +++ b/automotive/audiocontrol/2.0/default/AudioControl.cpp
@@ -69,7 +69,7 @@ } Return<void> AudioControl::setFadeTowardFront(float value) { - if (!isValidValue(value)) { + if (isValidValue(value)) { // Just log in this default mock implementation LOG(INFO) << "Fader set to " << value; } else {