Converted scope-local variables into function-local variables.
The 6502-specific LC implementation doesn't allow for scope-local vaiables between PT_BEGIN/PROCESS_BEGIN/PSOCK_BEGIN and PT_BEGIN/PROCESS_END/PSOCK_END.
This commit is contained in:
parent
b19fb0ac9e
commit
07f3df45be
11 changed files with 50 additions and 44 deletions
|
@ -133,8 +133,9 @@ send_ping(uip_ipaddr_t *dest_addr)
|
|||
/*---------------------------------------------------------------------------*/
|
||||
PROCESS_THREAD(shell_ping_process, ev, data)
|
||||
{
|
||||
static struct etimer e;
|
||||
struct shell_input *input;
|
||||
|
||||
|
||||
PROCESS_BEGIN();
|
||||
|
||||
if(data == NULL) {
|
||||
|
@ -149,9 +150,6 @@ PROCESS_THREAD(shell_ping_process, ev, data)
|
|||
running = 1;
|
||||
|
||||
while(running) {
|
||||
static struct etimer e;
|
||||
|
||||
|
||||
etimer_set(&e, CLOCK_SECOND * 10);
|
||||
|
||||
PROCESS_WAIT_EVENT();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue