convert c++-style comments
This commit is contained in:
@@ -30,10 +30,10 @@
|
|||||||
|
|
||||||
#include "motion_plus.h"
|
#include "motion_plus.h"
|
||||||
|
|
||||||
#include "events.h" // for disable_expansion
|
#include "events.h" /* for disable_expansion */
|
||||||
#include "ir.h" // for wiiuse_set_ir_mode
|
#include "ir.h" /* for wiiuse_set_ir_mode */
|
||||||
|
|
||||||
#include <string.h> // for memset
|
#include <string.h> /* for memset */
|
||||||
|
|
||||||
void wiiuse_motion_plus_check(struct wiimote_t *wm,byte *data,unsigned short len)
|
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)
|
void motion_plus_event(struct motion_plus_t* mp, byte* msg)
|
||||||
{
|
{
|
||||||
mp->rx = ((msg[5] & 0xFC) << 6) | msg[2]; // Pitch
|
mp->rx = ((msg[5] & 0xFC) << 6) | msg[2]; /* Pitch */
|
||||||
mp->ry = ((msg[4] & 0xFC) << 6) | msg[1]; // Roll
|
mp->ry = ((msg[4] & 0xFC) << 6) | msg[1]; /* Roll */
|
||||||
mp->rz = ((msg[3] & 0xFC) << 6) | msg[0]; // Yaw
|
mp->rz = ((msg[3] & 0xFC) << 6) | msg[0]; /* Yaw */
|
||||||
|
|
||||||
mp->ext = msg[4] & 0x1;
|
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 */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -595,7 +595,7 @@ int wiiuse_write_data_cb(struct wiimote_t *wm, unsigned int addr, byte *data, by
|
|||||||
req->len = len;
|
req->len = len;
|
||||||
memcpy(req->data,data,req->len);
|
memcpy(req->data,data,req->len);
|
||||||
req->state = REQ_READY;
|
req->state = REQ_READY;
|
||||||
req->addr = addr;//BIG_ENDIAN_LONG(addr);
|
req->addr = addr;/* BIG_ENDIAN_LONG(addr); */
|
||||||
req->next = NULL;
|
req->next = NULL;
|
||||||
/* add this to the request list */
|
/* add this to the request list */
|
||||||
if (!wm->data_req) {
|
if (!wm->data_req) {
|
||||||
|
|||||||
Reference in New Issue
Block a user