Skip to content
Open
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
9 changes: 7 additions & 2 deletions src/ScoutHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ static bool fieldCommands(NWK_DataInd_t *ind) {
Serial.print(ind->lqi);
Serial.print(F(" "));
Serial.print(F("rssi: "));
Serial.println(ind->rssi);
Serial.print(ind->rssi);
Serial.print(F(" "));
Serial.print(F("timestamp: "));
Serial.println(ind->timestamp);
}

if (fieldAnswerTo) {
Expand Down Expand Up @@ -343,7 +346,9 @@ static bool fieldAnnouncements(NWK_DataInd_t *ind) {

if (Scout.handler.isVerbose) {
Serial.print(F("multicast in "));
Serial.println(ind->dstAddr);
Serial.print(ind->dstAddr);
Serial.print(F(" timestamp: "));
Serial.println(ind->timestamp);
}
if (Scout.isLeadScout()) {
leadAnnouncementSend(ind->dstAddr, ind->srcAddr, ConstBuf(data, ind->size-1)); // no null
Expand Down
3 changes: 2 additions & 1 deletion src/SleepHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ void SleepHandler::setup() {
TCCR2B = (TCCR2B & ~((1<<CS22)|(1<<CS21))) | (1<<CS20);

// Enable the symbol counter, using the external 32kHz crystal
// Enable SFD timesamping for synchronization protocols.
// SCCR1 is left at defaults, with CMP3 in absolute compare mode.
SCCR0 |= (1 << SCEN) | (1 << SCCKSEL);
SCCR0 |= (1 << SCEN) | (1 << SCCKSEL) | (1 << SCTSE);

// Enable the SCNT_OVFL interrupt for timekeeping
SCIRQM |= (1 << IRQMOF);
Expand Down