small code improvements
This commit is contained in:
parent
3e29f56402
commit
f7fdf4a94e
2 changed files with 4 additions and 6 deletions
|
@ -37,7 +37,3 @@ void NtpClient::setDateTime() {
|
|||
sleep_ms(500);
|
||||
}
|
||||
}
|
||||
|
||||
void NtpClient::stop() {
|
||||
sntp_stop();
|
||||
}
|
||||
|
|
|
@ -8,9 +8,11 @@ extern "C" void set_system_time(u32_t sec);
|
|||
|
||||
class NtpClient {
|
||||
public:
|
||||
NtpClient() = delete;
|
||||
static void setDateTime();
|
||||
static void stop();
|
||||
|
||||
private:
|
||||
NtpClient() {} // Disallow creating an instance of this object
|
||||
};
|
||||
};
|
||||
|
||||
inline void NtpClient::stop() { sntp_stop(); }
|
Loading…
Reference in a new issue