PX4 / PX4-Flow

Firmware for PX4FLOW board
236 stars 340 forks source link

use FLOAT_AS_BOOL() to avoid warning #94

Closed ChristophTobler closed 7 years ago

TSC21 commented 7 years ago

@ChristophTobler what warning were we getting when compiling the code?

ChristophTobler commented 7 years ago
warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
  if (global_data.param[PARAM_USB_SEND_VIDEO] )//&& global_data.param[PARAM_VIDEO_USB_MODE] == FLOW_VIDEO)
TSC21 commented 7 years ago

Ok. Any other warnings we should take care of?

ChristophTobler commented 7 years ago

Nope. I don't get any other warnings