Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions avrrfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#include "dejavu.h"
#include "unifont.h"

#define TRANSMIT_FAST 30 // 30 ~ 60 seconds
#define TRANSMIT_SLOW 150 // 150 ~ 5 minutes
#define TRANSMIT_FAST 60 // seconds
#define TRANSMIT_SLOW 300 // seconds
#define MAX_TIMEOUTS 9 // slow down tx attempts after so many timeouts

#define LABEL_OFFSET 10
Expand Down Expand Up @@ -76,7 +76,7 @@
#endif

static volatile uint8_t watchdogInts = 0;
static uint8_t measureInts = TRANSMIT_FAST;
static uint16_t measureInts = TRANSMIT_FAST;
static uint8_t timeoutCount = 0;

/* Temp. label coordinates */
Expand Down Expand Up @@ -194,8 +194,8 @@ static void initWatchdog(void) {
wdt_reset();
// watchdog change enable
WDTCSR |= (1 << WDCE) | (1 << WDE);
// enable interrupt, disable system reset, bark every 2 seconds
WDTCSR = (1 << WDIE) | (0 << WDE) | (1 << WDP2) | (1 << WDP1) | (1 << WDP0);
// enable interrupt, disable system reset, bark every second
WDTCSR = (1 << WDIE) | (0 << WDE) | (1 << WDP2) | (1 << WDP1);
}

/**
Expand Down
Binary file modified librfm95.a
Binary file not shown.