Browse Source

Added round to Connections

Malte Veerman 7 years ago
parent
commit
7e75292104
1 changed files with 2 additions and 2 deletions
  1. 2 2
      import/qml/FanItem.qml

+ 2 - 2
import/qml/FanItem.qml

@@ -457,11 +457,11 @@ Rectangle {
 
 
                 Connections {
                 Connections {
                     target: root
                     target: root
-                    onFanChanged: if (!!fan) minStartInput.value = fan.minStart / 2.55
+                    onFanChanged: if (!!fan) minStartInput.value = Math.round(fan.minStart / 2.55)
                 }
                 }
                 Connections {
                 Connections {
                     target: fan
                     target: fan
-                    onMinPwmChanged: minStartInput.value = fan.minStart / 2.55
+                    onMinPwmChanged: minStartInput.value = Math.round(fan.minStart / 2.55)
                 }
                 }
             }
             }
         }
         }