Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix compiler warning in freenect_set_smoothing_mode.

Signed-off-by: Rene Wagner <rwagner@informatik.uni-bremen.de>
  • Loading branch information...
commit d8013404e1776556728788cfc567b7999bebe3c6 1 parent e9e1f7a
Rene Wagner authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/cameras.c
View
8 src/cameras.c
@@ -1341,14 +1341,18 @@ int freenect_set_depth_mode(freenect_device* dev, const freenect_frame_mode mode
int freenect_set_smoothing_mode(freenect_device* dev, const freenect_smoothing_mode mode)
{
+ int retval = -1;
+
switch(mode) {
case FREENECT_SMOOTHING_DISABLED:
- return write_register(dev, 0x16, 0x00);
+ retval = write_register(dev, 0x16, 0x00);
break;
case FREENECT_SMOOTHING_HOLE_FILLING_DEPTH_SMOOTHING_ENABLED:
- return write_register(dev, 0x16, 0x01);
+ retval = write_register(dev, 0x16, 0x01);
break;
}
+
+ return retval;
}
int freenect_set_range_mode(freenect_device* dev, const freenect_range_mode mode)
Please sign in to comment.
Something went wrong with that request. Please try again.