a little spacing cleanup
This commit is contained in:
@@ -683,7 +683,7 @@ void handshake_expansion(struct wiimote_t* wm, byte* data, uint16_t len) {
|
|||||||
wiiuse_write_data(wm, WM_EXP_MEM_ENABLE, &buf, 1);
|
wiiuse_write_data(wm, WM_EXP_MEM_ENABLE, &buf, 1);
|
||||||
|
|
||||||
/* get the calibration data */
|
/* get the calibration data */
|
||||||
handshake_buf = (byte *)malloc(EXP_HANDSHAKE_LEN * sizeof(byte));
|
handshake_buf = (byte *)malloc(EXP_HANDSHAKE_LEN * sizeof(byte));
|
||||||
wiiuse_read_data_cb(wm, handshake_expansion, handshake_buf, WM_EXP_MEM_CALIBR, EXP_HANDSHAKE_LEN);
|
wiiuse_read_data_cb(wm, handshake_expansion, handshake_buf, WM_EXP_MEM_CALIBR, EXP_HANDSHAKE_LEN);
|
||||||
|
|
||||||
/* tell the wiimote to send expansion data */
|
/* tell the wiimote to send expansion data */
|
||||||
@@ -883,7 +883,7 @@ static int state_changed(struct wiimote_t* wm) {
|
|||||||
CROSS_THRESH_XYZ(wm->lstate.accel, wm->accel, wm->accel_threshold);
|
CROSS_THRESH_XYZ(wm->lstate.accel, wm->accel, wm->accel_threshold);
|
||||||
|
|
||||||
/* orientation */
|
/* orientation */
|
||||||
CROSS_THRESH(wm->lstate.orient, wm->orient, wm->orient_threshold);
|
CROSS_THRESH(wm->lstate.orient, wm->orient, wm->orient_threshold);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* expansion */
|
/* expansion */
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ static int wiiuse_connect_single(struct wiimote_t* wm, char* address) {
|
|||||||
bacmp(bdaddr, BDADDR_ANY);*/
|
bacmp(bdaddr, BDADDR_ANY);*/
|
||||||
/* use address of device discovered */
|
/* use address of device discovered */
|
||||||
addr.l2_bdaddr = *bdaddr;
|
addr.l2_bdaddr = *bdaddr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user