X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fstm%2Fao_pwm_stm.c;h=9f3dde5492e148771a0ae8a3e60cfdfd82e95f25;hp=ce1fa6f3ea77bd7a8aa339721f24ee765ba6e64d;hb=HEAD;hpb=742f7c834bb5d651d2bebf2069d4e8facc33390d diff --git a/src/stm/ao_pwm_stm.c b/src/stm/ao_pwm_stm.c index ce1fa6f3..9f3dde54 100644 --- a/src/stm/ao_pwm_stm.c +++ b/src/stm/ao_pwm_stm.c @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -106,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;