aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Webserver/Lib/uip/clock.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-02-03 10:39:33 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-02-03 10:39:33 +0000
commit16ea5aa7a2e5f326f8ff129e740a19bb3fb7829f (patch)
treeaf3d7d3ccecbfb64d7cadbf1d731c7cfb5817e13 /Projects/Webserver/Lib/uip/clock.c
parent77e86e7d82c65b1c2a75f965cb936b8f7ad97ac2 (diff)
downloadlufa-16ea5aa7a2e5f326f8ff129e740a19bb3fb7829f.tar.gz
lufa-16ea5aa7a2e5f326f8ff129e740a19bb3fb7829f.tar.bz2
lufa-16ea5aa7a2e5f326f8ff129e740a19bb3fb7829f.zip
Add a TELNET server to the webserver project, which currently can list active TCP connections.
Diffstat (limited to 'Projects/Webserver/Lib/uip/clock.c')
-rw-r--r--Projects/Webserver/Lib/uip/clock.c5
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;
}