diff options
author | Nicholas Van Doorn <vandoorn.nick@gmail.com> | 2018-11-15 13:18:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 13:18:51 -0800 |
commit | 01b654796f181dedce166f3b6e047c5780ec98d8 (patch) | |
tree | 36bdc6d501b43565d0fdda7a13db911f535bcdec | |
parent | 158fd00543e468675c83f9ad23a4ce47a716f94f (diff) | |
parent | 16a0a51d8b42f11138b2663afe902f53c834889e (diff) |
Merge pull request #9 from brnkl/formatting-fix
Fix syntax highlighting
-rw-r--r-- | readme.md | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -61,16 +61,16 @@ le_result_t result = brnkl_motion_getCurrentAccleration(&v->x, &v->y, &v->z); ``` To get a list of all recent impacts. -``` - double xAcc[N_MAX_IMPACT_VALUES], yAcc[N_MAX_IMPACT_VALUES], zAcc[N_MAX_IMPACT_VALUES]; - - uint64_t timestamps[N_MAX_IMPACT_VALUES]; - - size_t xSize = N_MAX_IMPACT_VALUES, ySize = N_MAX_IMPACT_VALUES, - zSize = N_MAX_IMPACT_VALUES, timestampsSize = N_MAX_IMPACT_VALUES; - - le_result_t r = brnkl_motion_getSuddenImpact( - xAcc, &xSize, yAcc, &ySize, zAcc, &zSize, timestamps, ×tampsSize); - +```C +double xAcc[N_MAX_IMPACT_VALUES], yAcc[N_MAX_IMPACT_VALUES], + zAcc[N_MAX_IMPACT_VALUES]; + +uint64_t timestamps[N_MAX_IMPACT_VALUES]; + +size_t xSize = N_MAX_IMPACT_VALUES, ySize = N_MAX_IMPACT_VALUES, + zSize = N_MAX_IMPACT_VALUES, timestampsSize = N_MAX_IMPACT_VALUES; + +le_result_t r = brnkl_motion_getSuddenImpact( + xAcc, &xSize, yAcc, &ySize, zAcc, &zSize, timestamps, ×tampsSize); ``` |