mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-13 15:38:09 +00:00
PPP, documentation: fix notify phase callback documentation
A little grammar fix and an indentation fix in example code.
This commit is contained in:
parent
a12c149093
commit
d362e167c0
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user