Skip to content

Commit e78f927

Browse files
committed
Fix typo in method to disable resonant frequency
1 parent e0b66b1 commit e78f927

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/PWM_Mode_Teensy_Artemis/PWM_Mode_Teensy_Artemis.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void setup(){
5050
// its resonant frequency. I found that restricting the PCB (squeezing)
5151
// raises an error which stops operation because it can not reach resonance.
5252
// I disable here to avoid this error.
53-
hapDrive.enableAcceleration(false);
53+
hapDrive.enableFreqTrack(false);
5454

5555
analogWrite(pwmPin, power); // Apply the signal before entering PWM mode.
5656
delay(10); // An abundance of caution here =P

examples/PWM_Mode_Timer1/PWM_Mode_Timer1.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void setup(){
5454
// its resonant frequency. I found that restricting the PCB (squeezing)
5555
// raises an error which stops operation because it can not reach resonance.
5656
// I disable here to avoid this error.
57-
hapDrive.enableAcceleration(false);
57+
hapDrive.enableFreqTrack(false);
5858

5959
Timer1.pwm(pwmPin, power); // Apply signal before setting to PWM mode.
6060
delay(10); // An abundance of caution here =P

0 commit comments

Comments
 (0)