mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
silence warnings
This commit is contained in:
parent
226cda748c
commit
89a2af92ef
|
@ -59,6 +59,7 @@ typedef struct {
|
||||||
} pulsometer_state_t;
|
} pulsometer_state_t;
|
||||||
|
|
||||||
static void pulsometer_display_title(pulsometer_state_t *pulsometer) {
|
static void pulsometer_display_title(pulsometer_state_t *pulsometer) {
|
||||||
|
(void) pulsometer;
|
||||||
watch_display_string(PULSOMETER_FACE_TITLE, 0);
|
watch_display_string(PULSOMETER_FACE_TITLE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,7 @@ bool totp_face_loop(movement_event_t event, movement_settings_t *settings, void
|
||||||
movement_move_to_face(0);
|
movement_move_to_face(0);
|
||||||
break;
|
break;
|
||||||
case EVENT_ALARM_BUTTON_UP:
|
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++;
|
totp_state->current_index++;
|
||||||
} else {
|
} else {
|
||||||
// wrap around to first key
|
// wrap around to first key
|
||||||
|
|
|
@ -119,7 +119,8 @@ int getentropy(void *buf, size_t buflen) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void watch_disable_TRNG() {
|
void watch_disable_TRNG(void);
|
||||||
|
void watch_disable_TRNG(void) {
|
||||||
// per Microchip datasheet clarification DS80000782,
|
// per Microchip datasheet clarification DS80000782,
|
||||||
// silicon erratum 1.16.1 indicates that the TRNG may leave internal components powered after being disabled.
|
// 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.
|
// the workaround is to disable the TRNG by clearing the control register, twice.
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
*/
|
*/
|
||||||
#include "driver_init.h"
|
#include "driver_init.h"
|
||||||
|
|
||||||
|
uint16_t sequence_length(int8_t *sequence);
|
||||||
uint16_t sequence_length(int8_t *sequence) {
|
uint16_t sequence_length(int8_t *sequence) {
|
||||||
uint16_t result = 0;
|
uint16_t result = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue