static uint32_t _get_now_ts() {
// returns the current date time as unix timestamp
- watch_date_time_t now = watch_rtc_get_date_time();
- return watch_utility_date_time_to_unix_time(now, 0);
+ return movement_get_utc_timestamp();
}
static inline void _button_beep() {
#include <string.h>
#include "totp_face.h"
#include "watch.h"
-#include "watch_utility.h"
#include "TOTP.h"
#include "base32.h"
}
static inline uint32_t totp_compute_base_timestamp() {
- return watch_utility_date_time_to_unix_time(movement_get_utc_date_time(), 0);
+ return movement_get_utc_timestamp();
}
void totp_face_setup(uint8_t watch_face_index, void ** context_ptr) {
#include "base32.h"
#include "watch.h"
-#include "watch_utility.h"
#include "filesystem.h"
#include "totp_lfs_face.h"
}
#endif
- totp_state->timestamp = watch_utility_date_time_to_unix_time(movement_get_utc_date_time(), 0);
+ totp_state->timestamp = movement_get_utc_timestamp();
totp_face_set_record(totp_state, 0);
}