Skip to content
Snippets Groups Projects
Commit 93e0a911 authored by burneykb's avatar burneykb
Browse files

replaced %d with %lu to match variable type unsigned long

parent c2d7c613
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ int unix_pwm_input_reset(struct PWMInputDriver *self) {
cache[5] = FLAP_1;
for (i = 0; i < 6; i += 1) {
printf("%s: %d\n", input_names[i], cache[i]);
printf("%s: %lu\n", input_names[i], cache[i]);
}
return 0;
......@@ -72,7 +72,7 @@ void * update_input_cache(void *arg) {
unsigned long val = strtoll(buff, NULL, 10);
if (val < max && val > min) {
cache[i] = val;
printf("%s: %d\n", input_names[i], val);
printf("%s: %lu\n", input_names[i], val);
}
else {
printf("%s: Bad value - input not received\n", input_names[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment