altos/stm: Add casts to reduce -Wconversion warnings
[fw/altos] / src / stm / ao_pwm_stm.c
index 341f8887a6ab753237d50f7a6c8eeb0673ff4820..9f3dde5492e148771a0ae8a3e60cfdfd82e95f25 100644 (file)
@@ -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;