Remove frame.h include, expose raven_ping6 for external calls

This commit is contained in:
dak664 2010-03-02 15:15:03 +00:00
parent 024d8ff2b5
commit 7c020468b5
1 changed files with 4 additions and 5 deletions

View File

@ -59,7 +59,6 @@
#include "contiki-lib.h"
#include "contiki-net.h"
#include "frame.h"
#include "mac.h"
#include "raven-lcd.h"
@ -97,7 +96,7 @@ void rs232_send(uint8_t port, unsigned char c);
/*------------------------------------------------------------------*/
/* Sends a ping packet out the radio */
static void
void
raven_ping6(void)
{
@ -183,7 +182,7 @@ raven_gui_loop(process_event_t ev, process_data_t data)
break;
}
/* Reset command done flag. */
cmd.done = false;
cmd.done = 0;
}
break;
default:
@ -203,7 +202,7 @@ int raven_lcd_serial_input(unsigned char ch)
switch (cmd.ndx){
case 0:
/* first byte, must be 0x01 */
cmd.done = false;
cmd.done = 0;
if (ch != 0x01){
return 0;
}
@ -221,7 +220,7 @@ int raven_lcd_serial_input(unsigned char ch)
if (cmd.ndx >= cmd.len+3){
/* all done, check ETX */
if (ch == 0x04){
cmd.done = true;
cmd.done = 1;
process_post(&raven_lcd_process, SERIAL_CMD, 0);
} else {
/* Failed ETX */