LPC11C24: Added node status init

This commit is contained in:
Pavel Kirienko 2014-04-16 15:09:32 +04:00
parent 5926e3dd45
commit 97cb814ffd

View File

@ -7,11 +7,6 @@
#include <chip.h>
#include <uavcan_lpc11c24/uavcan_lpc11c24.hpp>
#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));