projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe2512c
)
pwm.c: Fix warnings due to unescaped %
author
Salah-Eddine Missri
<missrisalaheddine@gmail.com>
Wed, 29 Jul 2015 12:56:05 +0000
(14:56 +0200)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Fri, 31 Jul 2015 09:33:48 +0000
(10:33 +0100)
Signed-off-by: Salah-Eddine Missri <missrisalaheddine@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/pwm/pwm.c
patch
|
blob
|
history
diff --git
a/src/pwm/pwm.c
b/src/pwm/pwm.c
index
d458167
..
f0fd7f7
100644
(file)
--- a/
src/pwm/pwm.c
+++ b/
src/pwm/pwm.c
@@
-274,7
+274,7
@@
mraa_pwm_write(mraa_pwm_context dev, float percentage)
}
if (percentage > 1.0f) {
- syslog(LOG_WARNING, "pwm: number greater than 1 entered, defaulting to 100%");
+ syslog(LOG_WARNING, "pwm: number greater than 1 entered, defaulting to 100%
%
");
return mraa_pwm_write_duty(dev, dev->period);
}
return mraa_pwm_write_duty(dev, percentage * dev->period);