Remove some c++ comments and improve an output message
authorAntonio Ospite <ospite@studenti.unina.it>
Thu, 7 Apr 2011 10:25:36 +0000 (12:25 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Thu, 7 Apr 2011 10:25:36 +0000 (12:25 +0200)
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
kinect.c

index 174caa8..f8dcbeb 100644 (file)
--- a/kinect.c
+++ b/kinect.c
@@ -233,8 +233,11 @@ static int sd_config(struct gspca_dev *gspca_dev,
        cam->cam_mode = video_camera_mode;
        cam->nmodes = ARRAY_SIZE(video_camera_mode);
 
-       //cam->npkt = 15;
-       //gspca_dev->pkt_size = 960 * 2;
+#if 0
+       /* Setting those values is not needed for color camera */
+       cam->npkt = 15;
+       gspca_dev->pkt_size = 960 * 2;
+#endif
 
        return 0;
 }
@@ -321,7 +324,8 @@ static int sd_start(struct gspca_dev *gspca_dev)
 
 static void sd_stopN(struct gspca_dev *gspca_dev)
 {
-       write_register(gspca_dev, 0x05, 0x00); // reset video stream
+       /* reset video stream */
+       write_register(gspca_dev, 0x05, 0x00);
 }
 
 static void sd_pkt_scan(struct gspca_dev *gspca_dev, u8 *__data, int len)
@@ -355,7 +359,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, u8 *__data, int len)
                gspca_frame_add(gspca_dev, LAST_PACKET, data, datalen);
 
        else
-               warn("Not recognized...");
+               warn("Packet type not recognized...");
 }
 
 /* sub-driver description */