diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-06-24 14:45:24 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-06-24 14:45:24 -0400 |
commit | ac19671c33527c0f40b14e42f3c033cdbb808a79 (patch) | |
tree | 3bf02847860a11ad9f2a6ba41cf1ab2ffda7dbef | |
parent | b08c0f74786fe871e7c64a77d19d2a66329f62a4 (diff) | |
download | librambutan-ac19671c33527c0f40b14e42f3c033cdbb808a79.tar.gz librambutan-ac19671c33527c0f40b14e42f3c033cdbb808a79.zip |
systick.c: Updating systick_uptime_millis before handling user callback.
Thanks to x893 for the suggestion.
-rw-r--r-- | libmaple/systick.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/systick.c b/libmaple/systick.c index 5025328..1eb2117 100644 --- a/libmaple/systick.c +++ b/libmaple/systick.c @@ -79,8 +79,8 @@ void systick_attach_callback(void (*callback)(void)) { */ void __exc_systick(void) { + systick_uptime_millis++; if (systick_user_callback) { systick_user_callback(); } - systick_uptime_millis++; } |