File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -712,7 +712,7 @@ class JackHammer : public Pattern {
712712 d_out = d_in * (v_vib - v_stroke) / (v_vib + v_stroke)
713713 Formula neglects acceleration. Real timing will be slower due to finite acceleration & deceleration
714714 */
715- _outVibrationDistance = _inVibrationDistance * max (( _maxSpeed - _strokeInSpeed) / (_maxSpeed + _strokeInSpeed), 0 );
715+ _outVibrationDistance = _inVibrationDistance * ( _maxSpeed - _strokeInSpeed) / (_maxSpeed + _strokeInSpeed);
716716
717717#ifdef DEBUG_PATTERN
718718 Serial.println (" _maxSpeed: " + String (_maxSpeed) + " _strokeInSpeed: " + String (_strokeInSpeed) + " _strokeOutSpeed: " + String (int (1.5 * _stroke/_timeOfStroke)));
@@ -824,7 +824,7 @@ class StrokeNibbler : public Pattern {
824824 d_out = d_in * (v_vib - v_stroke) / (v_vib + v_stroke)
825825 Formula neglects acceleration. Real timing will be slower due to finite acceleration & deceleration
826826 */
827- _outVibrationDistance = _inVibrationDistance * max (( _maxSpeed - _strokeSpeed) / (_maxSpeed + _strokeSpeed), 0 );
827+ _outVibrationDistance = _inVibrationDistance * ( _maxSpeed - _strokeSpeed) / (_maxSpeed + _strokeSpeed);
828828
829829#ifdef DEBUG_PATTERN
830830 Serial.println (" _maxSpeed: " + String (_maxSpeed) + " _strokeSpeed: " + String (_strokeSpeed));
You can’t perform that action at this time.
0 commit comments