-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a more consistent style throughout codebase
- Loading branch information
1 parent
64a81bc
commit 2a52eed
Showing
48 changed files
with
3,121 additions
and
2,972 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--align-reference=none | ||
--convert-tabs | ||
--break-blocks | ||
--break-one-line-headers | ||
--unpad-paren | ||
--indent-switches | ||
--indent=spaces=4 | ||
--pad-header | ||
--pad-oper | ||
--pad-comma | ||
--style=java | ||
--suffix=none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
#include "AccelerometerRing.hpp" | ||
|
||
void AccelerometerRing::WriteToRing(AccelerometerEntry entry) | ||
{ | ||
void AccelerometerRing::WriteToRing(AccelerometerEntry entry) { | ||
uint32_t index = m_updatedindex; | ||
if(index == 7) | ||
|
||
if (index == 7) | ||
index = 0; | ||
else | ||
index++; | ||
|
||
ExclusiveWrite((u16*)&m_entries[index].x, entry.x); | ||
ExclusiveWrite((u16*)&m_entries[index].y, entry.y); | ||
ExclusiveWrite((u16*)&m_entries[index].z, entry.z); | ||
if(index == 0) // When index is 0 we need to update tickcount | ||
{ | ||
|
||
if (index == 0) { // When index is 0 we need to update tickcount | ||
m_oldtickcount = m_tickcount; | ||
m_tickcount = svcGetSystemTick(); | ||
} | ||
|
||
ExclusiveWrite(&m_updatedindex, index); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.