Fix a few compile errors and warnings found in build testing
This commit is contained in:
parent
dacdbb0005
commit
6c4405561a
@ -1238,7 +1238,7 @@ static void spirit_interrupt_work(FAR void *arg)
|
|||||||
DEBUGVERIFY(spirit_management_rxstrobe(spirit));
|
DEBUGVERIFY(spirit_management_rxstrobe(spirit));
|
||||||
DEBUGVERIFY(spirit_command(spirit, CMD_RX));
|
DEBUGVERIFY(spirit_command(spirit, CMD_RX));
|
||||||
|
|
||||||
if (priv->state == DRIVER_STATE_SENDING);
|
if (priv->state == DRIVER_STATE_SENDING)
|
||||||
{
|
{
|
||||||
priv->state = DRIVER_STATE_IDLE;
|
priv->state = DRIVER_STATE_IDLE;
|
||||||
}
|
}
|
||||||
|
@ -90,6 +90,8 @@ void devif_forward(FAR struct forward_s *fwd)
|
|||||||
|
|
||||||
fwd->f_dev->d_sndlen = 0;
|
fwd->f_dev->d_sndlen = 0;
|
||||||
fwd->f_dev->d_len = offset;
|
fwd->f_dev->d_len = offset;
|
||||||
|
|
||||||
|
UNUSED(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_NET_IPFORWARD */
|
#endif /* CONFIG_NET_IPFORWARD */
|
||||||
|
@ -40,11 +40,13 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
#include <nuttx/net/netdev.h>
|
#include <nuttx/net/netdev.h>
|
||||||
#include <nuttx/net/net.h>
|
#include <nuttx/net/net.h>
|
||||||
|
|
||||||
#include "devif/devif.h"
|
#include "devif/devif.h"
|
||||||
|
#include "sixlowpan/sixlowpan.h"
|
||||||
#include "ipforward/ipforward.h"
|
#include "ipforward/ipforward.h"
|
||||||
|
|
||||||
#ifdef CONFIG_NET_IPFORWARD
|
#ifdef CONFIG_NET_IPFORWARD
|
||||||
|
Loading…
Reference in New Issue
Block a user