Costmetic changes from review of last commit
This commit is contained in:
parent
0908a6c6b9
commit
2da3da7fd6
|
@ -56,7 +56,10 @@
|
||||||
|
|
||||||
int nest_irq = 0;
|
int nest_irq = 0;
|
||||||
|
|
||||||
// the default time is 10ms
|
// The default time is 10ms
|
||||||
|
// REVISIT: tick time is given by CONFIG_USEC_PER_TICK. MSEC_PER_TICK may
|
||||||
|
// be zero.
|
||||||
|
|
||||||
#ifdef MSEC_PER_TICK
|
#ifdef MSEC_PER_TICK
|
||||||
const unsigned int rtos_tick_time = MSEC_PER_TICK;
|
const unsigned int rtos_tick_time = MSEC_PER_TICK;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* drivers/net/slip.c
|
* drivers/net/slip.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011-2012, 2015 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011-2012, 2015-2016 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Reference: RFC 1055
|
* Reference: RFC 1055
|
||||||
|
@ -485,8 +485,8 @@ static void slip_txtask(int argc, FAR char *argv[])
|
||||||
/* Has a half second elapsed since the last timer poll? */
|
/* Has a half second elapsed since the last timer poll? */
|
||||||
|
|
||||||
now_ticks = clock_systimer();
|
now_ticks = clock_systimer();
|
||||||
hsec = (unsigned int)(now_ticks - start_ticks) / TICK_PER_HSEC;
|
hsec = (unsigned int)((now_ticks - start_ticks) / TICK_PER_HSEC);
|
||||||
if (hsec)
|
if (hsec > 0)
|
||||||
{
|
{
|
||||||
/* Yes, perform the timer poll */
|
/* Yes, perform the timer poll */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue