mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 04:01:37 +08:00
STM32: iface activity indication
This commit is contained in:
@@ -140,10 +140,11 @@ int main()
|
||||
|
||||
while (true)
|
||||
{
|
||||
app::ledSet(false);
|
||||
sleep(1);
|
||||
app::ledSet(true);
|
||||
sleep(1);
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
app::ledSet(app::can.driver.hadActivity());
|
||||
::usleep(25000);
|
||||
}
|
||||
|
||||
const uavcan::UtcTime utc = uavcan_stm32::clock::getUtc();
|
||||
lowsyslog("UTC %lu sec, %li corr, %lu jumps\n",
|
||||
|
||||
Reference in New Issue
Block a user