From 97cb814ffdcd2c6a6d80ec753230a4e2498c572c Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 16 Apr 2014 15:09:32 +0400 Subject: [PATCH] LPC11C24: Added node status init --- .../lpc11c24/test_olimex_lpc_p11c24/src/main.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libuavcan_drivers/lpc11c24/test_olimex_lpc_p11c24/src/main.cpp b/libuavcan_drivers/lpc11c24/test_olimex_lpc_p11c24/src/main.cpp index 8f97dd0b58..7911fae11b 100644 --- a/libuavcan_drivers/lpc11c24/test_olimex_lpc_p11c24/src/main.cpp +++ b/libuavcan_drivers/lpc11c24/test_olimex_lpc_p11c24/src/main.cpp @@ -7,11 +7,6 @@ #include #include -#define ENFORCE(x) \ - if ((x) == 0) { \ - while (true) { board::setErrorLed(true); } \ - } - namespace { @@ -50,6 +45,8 @@ int main() { init(); + getNode().setStatusOk(); + while (true) { const int res = getNode().spin(uavcan::MonotonicDuration::fromMSec(25));