summaryrefslogtreecommitdiff
path: root/ucoo/utils/trace.tcc
diff options
context:
space:
mode:
authorNicolas Schodet2016-07-25 15:18:40 +0200
committerNicolas Schodet2019-10-09 23:05:44 +0200
commit4695b47da68a5b2f75270bea21e15b8f1b9fd6ff (patch)
tree6e5ef4d34ee69bcd6c6627f25a0ca3aa902d47e3 /ucoo/utils/trace.tcc
parentd7df91926bdb529e68eff9a215aef72072803b6e (diff)
Switch to CMSIS
Diffstat (limited to 'ucoo/utils/trace.tcc')
-rw-r--r--ucoo/utils/trace.tcc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ucoo/utils/trace.tcc b/ucoo/utils/trace.tcc
index e48c5d8..8d1fc29 100644
--- a/ucoo/utils/trace.tcc
+++ b/ucoo/utils/trace.tcc
@@ -68,7 +68,9 @@ TraceBuffer<Timestamp>::operator() (const char *str, int a0, int a1, int a2)
{
timestamp_ (entries[index]);
entries[index].str = str;
- entries[index].args = { a0, a1, a2 };
+ entries[index].args[0] = a0;
+ entries[index].args[1] = a1;
+ entries[index].args[2] = a2;
index = (index + 1) % entries_nb;
}