Costmetic changes from review of last commit

This commit is contained in:
Gregory Nutt 2016-09-25 17:24:39 -06:00
parent 0908a6c6b9
commit 2da3da7fd6
2 changed files with 7 additions and 4 deletions

View File

@ -56,7 +56,10 @@
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
const unsigned int rtos_tick_time = MSEC_PER_TICK;
#else

View File

@ -1,7 +1,7 @@
/****************************************************************************
* 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>
*
* 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? */
now_ticks = clock_systimer();
hsec = (unsigned int)(now_ticks - start_ticks) / TICK_PER_HSEC;
if (hsec)
hsec = (unsigned int)((now_ticks - start_ticks) / TICK_PER_HSEC);
if (hsec > 0)
{
/* Yes, perform the timer poll */