Skip to content

Commit 7544ff1

Browse files
author
oclyke
committed
remove warnings
The support is good enough to not warrant such strongly worded advice
1 parent b0774aa commit 7544ff1

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

cores/arduino/ard_sup/analog/ap3_analog.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,6 @@ ap3_err_t analogWriteResolution(uint8_t res)
569569
return AP3_OK;
570570
}
571571

572-
/********************************************/
573-
/* WARNING! Changing the frame width or frequency of analogWrite() after starting a timer can have totally unexpected and frustration-inducing results
574-
/********************************************/
575572
ap3_err_t analogWriteFrameWidth(uint32_t fw){
576573
_analogWriteWidth = fw;
577574
if(_analogWriteWidth > AP3_MAX_ANALOG_WRITE_WIDTH){
@@ -580,9 +577,6 @@ ap3_err_t analogWriteFrameWidth(uint32_t fw){
580577
return AP3_OK;
581578
}
582579

583-
/********************************************/
584-
/* WARNING! Changing the frame width or frequency of analogWrite() after starting a timer can have totally unexpected and frustration-inducing results
585-
/********************************************/
586580
ap3_err_t analogWriteFrequency(float freq){
587581
_analogWriteWidth = (uint32_t)(12000000 / freq);
588582
if(_analogWriteWidth > AP3_MAX_ANALOG_WRITE_WIDTH){

cores/arduino/ard_sup/ap3_analog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ ap3_err_t analogReadResolution(uint8_t bits);
4747

4848
ap3_err_t ap3_pwm_output(uint8_t pin, uint32_t th, uint32_t fw, uint32_t clk);
4949
ap3_err_t analogWriteResolution(uint8_t res);
50-
ap3_err_t analogWriteFrameWidth(uint32_t fw); // DANGER (One time use only - before any analogWrite calls)
51-
ap3_err_t analogWriteFrequency(float freq); // DANGER (One time use only - before any analogWrite calls)
50+
ap3_err_t analogWriteFrameWidth(uint32_t fw);
51+
ap3_err_t analogWriteFrequency(float freq);
5252
ap3_err_t analogWrite(uint8_t pin, uint32_t val);
5353
ap3_err_t servoWriteResolution(uint8_t res);
5454
uint8_t getServoResolution();

0 commit comments

Comments
 (0)