altos: Make cmd number parsing functions return value
[fw/altos] / src / stm / ao_pwm_stm.c
index ce1fa6f3ea77bd7a8aa339721f24ee765ba6e64d..341f8887a6ab753237d50f7a6c8eeb0673ff4820 100644 (file)
@@ -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 = ao_cmd_decimal();
+       val = ao_cmd_decimal();
        if (ao_cmd_status != ao_cmd_success)
                return;