File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,7 @@ public override void Convert(DmdFrame frame)
152152 ReadSerumFrame ( ) ;
153153 _api . Convert ( ref _serumFrame ) ;
154154
155- if ( rotation < 0xfffffffe )
156- {
155+ if ( rotation < 0xfffffffe ) {
157156 rotation &= 0xffff ;
158157 // 0 => no rotation
159158 // 1 - 2048 => time in ms to next rotation
@@ -162,6 +161,7 @@ public override void Convert(DmdFrame frame)
162161 Logger . Info ( $ "[serum] First Rotation in { rotation } ms.") ;
163162 } else {
164163 StopRotating ( ) ;
164+ Logger . Info ( $ "[serum] Rotation stopped.") ;
165165 }
166166 }
167167 }
@@ -184,7 +184,7 @@ private void StartRotating()
184184 return ;
185185 }
186186 _rotator = Observable
187- . Interval ( TimeSpan . FromMilliseconds ( 1d / 60 ) )
187+ . Interval ( TimeSpan . FromMilliseconds ( 10 ) )
188188 . Subscribe ( Rotate ) ;
189189 }
190190
@@ -207,9 +207,9 @@ private bool UpdateRotations()
207207 rotation &= 0xffff ;
208208 // lower word: 0 => no rotation
209209 // lower word: 1 - 2048 => time in ms to next rotation
210- if ( rotation == 0 || rotation > 2048 )
211- {
210+ if ( rotation == 0 || rotation > 2048 ) {
212211 StopRotating ( ) ;
212+ Logger . Info ( $ "[serum] Rotation stopped.") ;
213213 return false ;
214214 }
215215
You can’t perform that action at this time.
0 commit comments