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