From 7dec48c44fb0fb4e3f7ec0b6ee27d8560283f223 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Wed, 14 Sep 2011 10:16:13 -0500 Subject: [PATCH] convert c++-style comments --- src/motion_plus.c | 14 +++++++------- src/wiiuse.c | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/motion_plus.c b/src/motion_plus.c index e8b2814..46b8b50 100644 --- a/src/motion_plus.c +++ b/src/motion_plus.c @@ -30,10 +30,10 @@ #include "motion_plus.h" -#include "events.h" // for disable_expansion -#include "ir.h" // for wiiuse_set_ir_mode +#include "events.h" /* for disable_expansion */ +#include "ir.h" /* for wiiuse_set_ir_mode */ -#include // for memset +#include /* for memset */ void wiiuse_motion_plus_check(struct wiimote_t *wm,byte *data,unsigned short len) { @@ -104,10 +104,10 @@ void motion_plus_disconnected(struct motion_plus_t* mp) void motion_plus_event(struct motion_plus_t* mp, byte* msg) { - mp->rx = ((msg[5] & 0xFC) << 6) | msg[2]; // Pitch - mp->ry = ((msg[4] & 0xFC) << 6) | msg[1]; // Roll - mp->rz = ((msg[3] & 0xFC) << 6) | msg[0]; // Yaw + mp->rx = ((msg[5] & 0xFC) << 6) | msg[2]; /* Pitch */ + mp->ry = ((msg[4] & 0xFC) << 6) | msg[1]; /* Roll */ + mp->rz = ((msg[3] & 0xFC) << 6) | msg[0]; /* Yaw */ mp->ext = msg[4] & 0x1; - mp->status = (msg[3] & 0x3) | ((msg[4] & 0x2) << 1); // roll, yaw, pitch + mp->status = (msg[3] & 0x3) | ((msg[4] & 0x2) << 1); /* roll, yaw, pitch */ } diff --git a/src/wiiuse.c b/src/wiiuse.c index f58d1bb..07dbce8 100644 --- a/src/wiiuse.c +++ b/src/wiiuse.c @@ -595,7 +595,7 @@ int wiiuse_write_data_cb(struct wiimote_t *wm, unsigned int addr, byte *data, by req->len = len; memcpy(req->data,data,req->len); req->state = REQ_READY; - req->addr = addr;//BIG_ENDIAN_LONG(addr); + req->addr = addr;/* BIG_ENDIAN_LONG(addr); */ req->next = NULL; /* add this to the request list */ if (!wm->data_req) {