examples/can: TX and RX structs assigned 0 at startup
This commit is contained in:
parent
ddaa1411a3
commit
85eb37c62b
@ -139,7 +139,11 @@ int main(int argc, FAR char *argv[])
|
|||||||
struct canioc_bittiming_s bt;
|
struct canioc_bittiming_s bt;
|
||||||
|
|
||||||
#ifdef CONFIG_EXAMPLES_CAN_WRITE
|
#ifdef CONFIG_EXAMPLES_CAN_WRITE
|
||||||
struct can_msg_s txmsg;
|
struct can_msg_s txmsg =
|
||||||
|
{
|
||||||
|
0
|
||||||
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_CAN_EXTID
|
#ifdef CONFIG_CAN_EXTID
|
||||||
bool extended = true;
|
bool extended = true;
|
||||||
uint32_t msgid;
|
uint32_t msgid;
|
||||||
@ -154,7 +158,11 @@ int main(int argc, FAR char *argv[])
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
#ifdef CONFIG_EXAMPLES_CAN_READ
|
#ifdef CONFIG_EXAMPLES_CAN_READ
|
||||||
struct can_msg_s rxmsg;
|
struct can_msg_s rxmsg =
|
||||||
|
{
|
||||||
|
0
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
size_t msgsize;
|
size_t msgsize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user