summaryrefslogtreecommitdiff
path: root/firmware/src/os/pwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/src/os/pwm.c')
-rw-r--r--firmware/src/os/pwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/src/os/pwm.c b/firmware/src/os/pwm.c
index 285f4e7..70858bb 100644
--- a/firmware/src/os/pwm.c
+++ b/firmware/src/os/pwm.c
@@ -138,7 +138,7 @@ static int pwm_usb_in(struct req_ctx *rctx)
case OPENPCD_CMD_PWM_FREQ_SET:
if (rctx->tot_len < sizeof(*poh)+4)
break;
- freq = (unsigned char *) poh + sizeof(*poh);
+ freq = (u_int32_t *) ((unsigned char *) poh) + sizeof(*poh);
pwm_freq_set(0, *freq);
break;
case OPENPCD_CMD_PWM_FREQ_GET:
personal git repositories of Harald Welte. Your mileage may vary