PPP, documentation: fix notify phase callback documentation

A little grammar fix and an indentation fix in example code.
This commit is contained in:
Sylvain Rochet 2016-07-03 19:11:28 +02:00
parent a12c149093
commit d362e167c0

View File

@ -437,8 +437,8 @@ up(running) and down(dead) events.
Notify phase callback can be used, for example, to set a LED pattern depending Notify phase callback can be used, for example, to set a LED pattern depending
on the current phase of the PPP session. Here is a callback example which on the current phase of the PPP session. Here is a callback example which
try to mimics what we usually see on xDSL modems while they are negotiating the tries to mimic what we usually see on xDSL modems while they are negotiating
link, which should be self-explanatory: the link, which should be self-explanatory:
static void ppp_notify_phase_cb(ppp_pcb *pcb, u8_t phase, void *ctx) { static void ppp_notify_phase_cb(ppp_pcb *pcb, u8_t phase, void *ctx) {
switch (phase) { switch (phase) {
@ -463,7 +463,7 @@ static void ppp_notify_phase_cb(ppp_pcb *pcb, u8_t phase, void *ctx) {
led_set(PPP_LED, LED_ON); led_set(PPP_LED, LED_ON);
break; break;
default: default:
break; break;
} }
} }