Skip to content

Commit

Permalink
use FLOAT_AS_BOOL() to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophTobler committed Aug 16, 2017
1 parent 9eb8fb3 commit 1bb4e50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/flow/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,8 @@ uint8_t compute_flow(uint8_t *image1, uint8_t *image2, float x_rate, float y_rat
/* create flow image if needed (image1 is not needed anymore)
* -> can be used for debugging purpose
*/
if (global_data.param[PARAM_USB_SEND_VIDEO] )//&& global_data.param[PARAM_VIDEO_USB_MODE] == FLOW_VIDEO)
if (FLOAT_AS_BOOL(global_data.param[PARAM_USB_SEND_VIDEO]))//&& global_data.param[PARAM_VIDEO_USB_MODE] == FLOW_VIDEO)
{

for (j = pixLo; j < pixHi; j += pixStep)
{
for (i = pixLo; i < pixHi; i += pixStep)
Expand Down

0 comments on commit 1bb4e50

Please sign in to comment.