Skip to content

wdtStarted never set to false #19

@pedzed

Description

@pedzed

wdtStarted is set to true in TheThingsNode::WDT_start(), but in TheThingsNode::WDT_stop(), not set to false.

void TheThingsNode::WDT_stop()
{
if (!this->wdtStarted)
{
return;
}
cli();
MCUSR &= ~(1 << WDRF);
WDTCSR |= (1 << WDCE) | (1 << WDE);
WDTCSR = 0x00;
WDTCSR = 0 << WDP0 | 1 << WDP1 | 0 << WDP2 | 0 << WDP3;
sei();
this->wdtStarted = true;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions