@@ -126,7 +126,7 @@ static uint8_t node_mode = UAVCAN_NODE_MODE_INITIALIZATION;
126
126
static bool g_canard_daemon_started ;
127
127
128
128
#if CANARD_ENABLE_CANFD
129
- static bool canfd = false ;
129
+ static bool canfd ;
130
130
#endif
131
131
132
132
/****************************************************************************
@@ -250,7 +250,7 @@ static void onTransferReceived(CanardInstance *ins,
250
250
transfer -> priority ,
251
251
CanardResponse ,
252
252
& buffer [0 ],
253
- (uint16_t ) total_size , canfd );
253
+ (uint16_t )total_size , canfd );
254
254
#else
255
255
canardRequestOrRespond (ins ,
256
256
transfer -> source_node_id ,
@@ -415,9 +415,9 @@ void process1HzTasks(uint64_t timestamp_usec)
415
415
*
416
416
****************************************************************************/
417
417
#ifdef CONFIG_NET_CAN
418
- void processTxRxOnce (SocketCANInstance * socketcan , int timeout_msec )
418
+ void processTxRxOnce (SocketCANInstance * socketcan , int timeout_msec )
419
419
#else
420
- void processTxRxOnce (CanardNuttXInstance * nuttxcan , int timeout_msec )
420
+ void processTxRxOnce (CanardNuttXInstance * nuttxcan , int timeout_msec )
421
421
#endif
422
422
{
423
423
const CanardCANFrame * txf ;
@@ -501,7 +501,7 @@ static int canard_daemon(int argc, char *argv[])
501
501
502
502
503
503
#ifdef CONFIG_NET_CAN
504
- const char * const can_iface_name = "can0" ;
504
+ const char * const can_iface_name = "can0" ;
505
505
506
506
# if CANARD_ENABLE_CANFD
507
507
int16_t res = socketcanInit (& socketcan , can_iface_name , canfd );
@@ -604,7 +604,8 @@ int main(int argc, FAR char *argv[])
604
604
return EXIT_SUCCESS ;
605
605
}
606
606
607
- if (argc == 2 && strcmp (argv [1 ],"canfd" ) == 0 ) {
607
+ if (argc == 2 && strcmp (argv [1 ], "canfd" ) == 0 )
608
+ {
608
609
printf ("CAN FD mode enabled\n" );
609
610
canfd = true;
610
611
}
0 commit comments