mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
LPC11C24: Added node status init
This commit is contained in:
parent
5926e3dd45
commit
97cb814ffd
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user