diff options
| author | Meco Man <[email protected]> | 2023-03-17 00:12:16 -0400 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-03-20 00:06:16 -0400 |
| commit | 0f461e870c481a24ce2690cca1949706bb80f9e7 (patch) | |
| tree | e77c8813658be76824bb848346cf9ef2340806f2 /components/drivers/misc | |
| parent | de963feef4c5075626858c97413186fc2a309ffe (diff) | |
[errno code][-RT_ERROR] fix that use RT_ERROR without -
Diffstat (limited to 'components/drivers/misc')
| -rw-r--r-- | components/drivers/misc/rt_drv_pwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/misc/rt_drv_pwm.c b/components/drivers/misc/rt_drv_pwm.c index 25b45f9d43..59f29c8c59 100644 --- a/components/drivers/misc/rt_drv_pwm.c +++ b/components/drivers/misc/rt_drv_pwm.c @@ -413,7 +413,7 @@ static int pwm(int argc, char **argv) rt_kprintf("pwm set <channel> <period> <pulse> - set pwm channel info\n"); rt_kprintf("pwm phase <channel> <phase> - set pwm phase\n"); rt_kprintf("pwm dead_time <channel> <dead_time> - set pwm dead time\n"); - result = - RT_ERROR; + result = -RT_ERROR; } } } @@ -427,7 +427,7 @@ static int pwm(int argc, char **argv) rt_kprintf("pwm set <channel> <period> <pulse> - set pwm channel info\n"); rt_kprintf("pwm phase <channel> <phase> - set pwm phase\n"); rt_kprintf("pwm dead_time <channel> <dead_time> - set pwm dead time\n"); - result = - RT_ERROR; + result = -RT_ERROR; } return RT_EOK; |
