From 16ea5aa7a2e5f326f8ff129e740a19bb3fb7829f Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 3 Feb 2010 10:39:33 +0000 Subject: Add a TELNET server to the webserver project, which currently can list active TCP connections. --- Projects/Webserver/Lib/uip/clock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Projects/Webserver/Lib/uip/clock.c') 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; } -- cgit v1.2.3