diff options
Diffstat (limited to 'Projects/Webserver/Lib/uip/clock.c')
-rw-r--r-- | Projects/Webserver/Lib/uip/clock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Projects/Webserver/Lib/uip/clock.c b/Projects/Webserver/Lib/uip/clock.c index e8a676b1a..299a747bc 100644 --- a/Projects/Webserver/Lib/uip/clock.c +++ b/Projects/Webserver/Lib/uip/clock.c @@ -29,9 +29,10 @@ clock_time_t clock_time() {
clock_time_t time; - cli(); + ATOMIC_BLOCK(ATOMIC_FORCEON) + { time = clock_datetime; - sei(); + } return time; } |