summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Van Doorn <vandoorn.nick@gmail.com>2018-11-15 13:18:51 -0800
committerGitHub <noreply@github.com>2018-11-15 13:18:51 -0800
commit01b654796f181dedce166f3b6e047c5780ec98d8 (patch)
tree36bdc6d501b43565d0fdda7a13db911f535bcdec
parent158fd00543e468675c83f9ad23a4ce47a716f94f (diff)
parent16a0a51d8b42f11138b2663afe902f53c834889e (diff)
Merge pull request #9 from brnkl/formatting-fix
Fix syntax highlighting
-rw-r--r--readme.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/readme.md b/readme.md
index 3aa0175..fdd3703 100644
--- a/readme.md
+++ b/readme.md
@@ -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, &timestampsSize);
-
+```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, &timestampsSize);
```