} pulsometer_state_t;
static void pulsometer_display_title(pulsometer_state_t *pulsometer) {
+ (void) pulsometer;
watch_display_string(PULSOMETER_FACE_TITLE, 0);
}
movement_move_to_face(0);
break;
case EVENT_ALARM_BUTTON_UP:
- if (totp_state->current_index + 1 < totp_total()) {
+ if ((size_t)totp_state->current_index + 1 < totp_total()) {
totp_state->current_index++;
} else {
// wrap around to first key
return 0;
}
-void watch_disable_TRNG() {
+void watch_disable_TRNG(void);
+void watch_disable_TRNG(void) {
// per Microchip datasheet clarification DS80000782,
// silicon erratum 1.16.1 indicates that the TRNG may leave internal components powered after being disabled.
// the workaround is to disable the TRNG by clearing the control register, twice.
*/
#include "driver_init.h"
+uint16_t sequence_length(int8_t *sequence);
uint16_t sequence_length(int8_t *sequence) {
uint16_t result = 0;