Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos] / src / telemega-v5.0 / ao_pins.h
index 4ad2bfb4224a614cf6597258fef595e9eba86342..3f2c9ea44e5365a8c7862499c874b21a8c6a7d50 100644 (file)
@@ -84,8 +84,8 @@
 #define BEEPER_PORT            (&stm_gpioe)
 #define BEEPER_PIN             4
 #define AO_BEEP_MID_DEFAULT    179             /* 2100 Hz */
-#define AO_BEEP_MAKE_LOW(m)    ((m) * 197/179) /* 1900 Hz */
-#define AO_BEEP_MAKE_HIGH(m)   ((m) * 163/179) /* 2300 Hz */
+#define AO_BEEP_MAKE_LOW(m)    ((uint8_t) ((m) * 197U/179U)) /* 1900 Hz */
+#define AO_BEEP_MAKE_HIGH(m)   ((uint8_t) ((m) * 163U/179U)) /* 2300 Hz */
 #define HAS_BATTERY_REPORT     1
 #define HAS_RADIO              1
 #define HAS_TELEMETRY          1