mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 17:43:39 +08:00
SNTP: Add function to get SNTP enabled state
This commit is contained in:
@@ -571,6 +571,14 @@ sntp_stop(void)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get enabled state.
|
||||
*/
|
||||
u8_t sntp_enabled(void)
|
||||
{
|
||||
return (sntp_pcb != NULL)? 1 : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the operating mode.
|
||||
* @param operating_mode one of the available operating modes
|
||||
|
||||
Reference in New Issue
Block a user