rename: read_pulsewitdth_us to read_pulsewidth_us

pull/15302/head
yutotnh 2022-06-21 23:25:43 +09:00
parent 54e8693ef4
commit 6a4ba443ea
No known key found for this signature in database
GPG Key ID: 4337BC8A24CA3BDC
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ public:
* @returns
* The PWM pulsewith, specified in microseconds (int)
*/
int read_pulsewitdth_us();
int read_pulsewidth_us();
/** Suspend PWM operation
*

View File

@ -113,7 +113,7 @@ void PwmOut::pulsewidth_us(int us)
core_util_critical_section_exit();
}
int PwmOut::read_pulsewitdth_us()
int PwmOut::read_pulsewidth_us()
{
core_util_critical_section_enter();
auto val = pwmout_read_pulsewidth_us(&_pwm);