From 4e4f71515d39dd887f968fb422d6f81ead424fb3 Mon Sep 17 00:00:00 2001 From: luz paz Date: Thu, 28 Oct 2021 22:07:06 -0400 Subject: Fix various typos in docs, user-facing code, and source comments Found via `codespell -q 3 -S *.po,./lib/libUPnP/Neptune -L bloaded,busses,inout,lod,medias,parm` --- tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools/EventClients') diff --git a/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp b/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp index 6f1657f181..19ff811e58 100644 --- a/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp +++ b/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp @@ -60,7 +60,8 @@ void CWiiRemote::MessageCallback(cwiid_wiimote_t *wiiremote, int mesg_count, uni /* The MessageCallback for the Wiiremote. This callback is used for error reports, mainly to see if the connection has been broken - This callback is also used for getting the IR sources, if this is done in update as with buttons we usually only get 1 IR source at a time wich is much harder to calculate */ + This callback is also used for getting the IR sources, if this is done in update as with + buttons we usually only get 1 IR source at a time which is much harder to calculate */ void CWiiRemote::MessageCallback(cwiid_wiimote_t *wiiremote, int mesg_count, union cwiid_mesg mesg[], struct timespec *timestamp) { for (int i=0; i < mesg_count; i++) @@ -399,7 +400,7 @@ void CWiiRemote::DisconnectNow(bool startConnectThread) #ifdef CWIID_OLD /* This is a harsh check if there really is a connection, It will mainly be used in CWIID < 6.0 - as it doesn't report connect error, wich is needed to see if the Wiiremote suddenly disconnected. + as it doesn't report connect error, which is needed to see if the Wiiremote suddenly disconnected. This could possible be done with bluetooth specific queries but I cannot find how to do it. */ bool CWiiRemote::CheckConnection() { @@ -571,7 +572,7 @@ void CWiiRemote::ProcessNunchuck(struct cwiid_nunchuk_mesg &Nunchuck) } } -/* Tell cwiid wich data will be reported */ +/* Tell cwiid which data will be reported */ void CWiiRemote::SetRptMode() { //Sets our wiiremote to report something, for example IR, Buttons #ifdef CWIID_OLD -- cgit v1.2.3