Skip to content

Commit 4708db9

Browse files
committed
move invrement
1 parent 4629c30 commit 4708db9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FprimeZephyrReference/Components/Burnwire/Burnwire.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@ void Burnwire ::schedIn_handler(FwIndexType portNum, U32 context) {
5454

5555
if (this->m_state == Fw::On::ON) {
5656
this->m_safetyCounter++;
57+
printk("safety counter: %u\n", this->m_safetyCounter);
58+
printk("Burnwire safety counter: %u\n", this->m_safetyCounter);
5759
if (this->m_safetyCounter == 1) {
5860
this->gpioSet_out(0, Fw::Logic::HIGH);
5961
this->gpioSet_out(1, Fw::Logic::HIGH);
6062
this->log_ACTIVITY_HI_SafetyTimerStatus(Fw::On::ON);
6163
}
6264

6365
if (this->m_safetyCounter >= timeout) {
64-
this->m_safetyCounter++;
6566
stopBurn();
6667
this->log_ACTIVITY_HI_SafetyTimerStatus(Fw::On::OFF);
6768
}

0 commit comments

Comments
 (0)