-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
Signed-off-by: falkTX <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -331,7 +331,7 @@ def __init__(self, hmi, prefs, msg_callback): | |
self.profile = Profile(self.profile_apply, self.descriptor) | ||
|
||
self.swapped_audio_channels = self.descriptor.get('swapped_audio_channels', False) | ||
self.tuner_resolution = self.descriptor.get('tuner_resolution', 16) | ||
self.tuner_resolution = self.descriptor.get('tuner_resolution', 1) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
falkTX
Author
Member
|
||
|
||
self.current_tuner_port = self.prefs.get("tuner-input-port", 1, int) | ||
self.current_tuner_mute = self.prefs.get("tuner-mutes-outputs", False, bool) | ||
|
On the Dwarf we need a resolution of 100 to get the semi cent into the widget_tuner. Otherwise we lose precision down to 1 Cent. The widget_tuner expected a precision of 0.01 Cent in order to draw the bars correctly. As we send the Cent as int it needs to be multiplied by 100 in tuner.py before it get converted to int. Doing that and revert the last commit on mod-dwarf-controller should fix the tuner.