@@ -61,7 +61,6 @@ public MysteryVibe(IButtplugLogManager aLogManager,
6161 aInfo )
6262 {
6363 // Create a new timer that wont fire any events just yet
64-
6564 _updateValueTimer . Interval = DelayTimeMS ;
6665 _updateValueTimer . Elapsed += MysteryVibeUpdateHandler ;
6766 _updateValueTimer . Enabled = false ;
@@ -97,8 +96,8 @@ private async void MysteryVibeUpdateHandler(object aEvent, ElapsedEventArgs aArg
9796 if ( _vibratorSpeeds . SequenceEqual ( NullSpeed ) )
9897 {
9998 _updateValueTimer . Enabled = false ;
100- }
101-
99+ }
100+
102101 if ( await Interface . WriteValue ( ButtplugConsts . DefaultMsgId ,
103102 ( uint ) MysteryVibeBluetoothInfo . Chrs . MotorControl ,
104103 _vibratorSpeeds ) is Error errorMsg )
@@ -163,10 +162,10 @@ private async Task<ButtplugMessage> HandleVibrateCmd(ButtplugDeviceMessage aMsg)
163162 _vibratorSpeeds = newVibratorSpeeds ;
164163
165164 if ( ! _updateValueTimer . Enabled )
166- {
167- // Run the update handler once to start the command
168- MysteryVibeUpdateHandler ( null , null ) ;
169-
165+ {
166+ // Run the update handler once to start the command
167+ MysteryVibeUpdateHandler ( null , null ) ;
168+
170169 // Start the timer to it will keep updating
171170 _updateValueTimer . Enabled = true ;
172171 }
0 commit comments