forked from M-Labs/artiq
1
0
Fork 0

runtime/main: style, wording, 1s ppp holdoff

This commit is contained in:
Robert Jördens 2016-01-25 13:38:58 -07:00
parent 2c847b3d16
commit 0079aa4037
1 changed files with 9 additions and 9 deletions

View File

@ -154,14 +154,14 @@ static int ppp_connected;
static void ppp_status_cb(ppp_pcb *pcb, int err_code, void *ctx) static void ppp_status_cb(ppp_pcb *pcb, int err_code, void *ctx)
{ {
if (err_code == PPPERR_NONE) { if (err_code == PPPERR_NONE) {
ppp_connected = 1; ppp_connected = 1;
return; return;
} else if (err_code == PPPERR_USER) { } else if (err_code == PPPERR_USER) {
return; return;
} else { } else {
ppp_connect(pcb, 10); ppp_connect(pcb, 1);
} }
} }
u32_t sio_write(sio_fd_t fd, u8_t *data, u32_t len) u32_t sio_write(sio_fd_t fd, u8_t *data, u32_t len)
@ -214,7 +214,7 @@ static struct net_server_instance analyzer_inst = {
static void regular_main(void) static void regular_main(void)
{ {
puts("Accepting sessions on Network."); puts("Accepting network sessions.");
network_init(); network_init();
net_server_init(&session_inst); net_server_init(&session_inst);
#ifdef CSR_RTIO_ANALYZER_BASE #ifdef CSR_RTIO_ANALYZER_BASE