small code improvements

This commit is contained in:
Martin Brodbeck 2023-01-05 09:08:00 +01:00
parent 3e29f56402
commit f7fdf4a94e
2 changed files with 4 additions and 6 deletions

View file

@ -37,7 +37,3 @@ void NtpClient::setDateTime() {
sleep_ms(500);
}
}
void NtpClient::stop() {
sntp_stop();
}

View file

@ -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(); }