X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm%2Fao_pwm_stm.c;h=53000a170f19564ab1d5689559c40ad981099852;hb=master;hp=341f8887a6ab753237d50f7a6c8eeb0673ff4820;hpb=c417ab1de2a083b5fcff2e081e4feb2a65887903;p=fw%2Faltos diff --git a/src/stm/ao_pwm_stm.c b/src/stm/ao_pwm_stm.c index 341f8887..9f3dde54 100644 --- a/src/stm/ao_pwm_stm.c +++ b/src/stm/ao_pwm_stm.c @@ -107,8 +107,8 @@ ao_pwm_cmd(void) uint8_t ch; uint16_t val; - ch = ao_cmd_decimal(); - val = ao_cmd_decimal(); + ch = (uint8_t) ao_cmd_decimal(); + val = (uint16_t) ao_cmd_decimal(); if (ao_cmd_status != ao_cmd_success) return;