static inline uint8_t
ao_usb_connected(void)
{
- return ao_gpio_get(AO_USB_CONNECT_PORT, AO_USB_CONNECT_PIN, AO_USB_CONNECT) != 0;
+ return ao_gpio_get(AO_USB_CONNECT_PORT, AO_USB_CONNECT_PIN) != 0;
}
#else
#define ao_usb_connected() 1
height = -height;
if (ao_tracker_force_telem > 1)
- printf("head %d ring %d ground_distance %d height %d\n", gps_head, ring, ground_distance, height);
+ printf("head %d ring %d ground_distance %ld height %d\n", gps_head, ring, (long) ground_distance, height);
if (ground_distance > ao_config.tracker_motion ||
height > (ao_config.tracker_motion << 1))
{