From cc5c3115bdb189b3c2c05ce0653a6d37faa6c331 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 18 Apr 2011 23:01:19 +0100 Subject: [PATCH] No more CPU hog in Native ANT. --- src/ANT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ANT.cpp b/src/ANT.cpp index fe3b775a6..5ae14dcf2 100644 --- a/src/ANT.cpp +++ b/src/ANT.cpp @@ -183,7 +183,7 @@ void ANT::run() // read more bytes from the device uint8_t byte; if (rawRead(&byte, 1) > 0) receiveByte((unsigned char)byte); - //else msleep(5); + else msleep(1); //---------------------------------------------------------------------- // LISTEN TO CONTROLLER FOR COMMANDS