char second_word[3];
char third_word[3];
if (five_minute_period == 0) { // " HH OC",
- sprintf(first_word, " ", 3);
+ sprintf(first_word, " ");
sprintf(second_word, "%2d", close_enough_hour);
strncpy(third_word, oclock_word, 3);
} else { // "MM P HH" or "MM 2 HH+1"
case input:
{
char buf[7];
- sprintf(buf, "%06u", state->selection_value);
+ sprintf(buf, "%06lu", state->selection_value);
watch_display_text(WATCH_POSITION_BOTTOM, buf);
// Only allow ints for Gas Mk
{
uint32_t rounded = conversion + .5;
char buf[7];
- sprintf(buf, "%6u", rounded);
+ sprintf(buf, "%6lu", rounded);
watch_display_text(WATCH_POSITION_BOTTOM, buf);
// Make sure LSDs always filled
#include <string.h>
#include "tarot_face.h"
-uint32_t arc4random_uniform(uint32_t upper_bound);
-
#define TAROT_ANIMATION_TICK_FREQUENCY 8
#define FLIPPED_BIT_POS 7
#define FLIPPED_MASK ((uint8_t)(1 << FLIPPED_BIT_POS))
* FIXME: find a better place for this, a couple of watch faces need it.
*/
void watch_disable_TRNG(void);
+
+#ifndef arc4random_uniform
+// not sure why this definition is missing but let's put it here for now
+uint32_t arc4random_uniform(uint32_t upper_bound);
+#endif