From 51605d8d1c1e80d571cd443abbb0925cdb9183db Mon Sep 17 00:00:00 2001 From: wiebel Date: Wed, 30 Mar 2022 07:34:11 +0200 Subject: [PATCH] before serial in --- src/CANNode.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/CANNode.cpp b/src/CANNode.cpp index 1d83951..67e1615 100644 --- a/src/CANNode.cpp +++ b/src/CANNode.cpp @@ -4,7 +4,6 @@ // CANNode for Teensy 3.1/3.2 // GPLv2 // by wiebel (c) 2015-2018 -// github_push_test_01 #include #include @@ -15,8 +14,8 @@ // For Node definition: //#include "Node_1_def.h" // Dachstuhl -//#include "Node_2_def.h" // Werkstatt -#include "Node_3_def.h" // Keller +#include "Node_2_def.h" // Werkstatt +//#include "Node_3_def.h" // Keller // Metro ticks in ms #define METRO_CAN_tick 1 @@ -221,11 +220,13 @@ for (uint8_t i = 0; action_map[i].tag != 0 ; i++) { if ( old_state == new_state) { data[0]=action_map[i].outputs_idx; data[1]=new_state ^ outputs[action_map[i].outputs_idx].invert; + Serial.println(F("Sending nochange to CAN")); CAN_send(NOTIFY, 0x0, STATE_OUT, data, 2); } else { data[0]=action_map[i].outputs_idx; data[1]=new_state ^ outputs[action_map[i].outputs_idx].invert; + Serial.println(F("Sending change to CAN")); CAN_send(NOTIFY, 0x0, NEWSTATE_OUT, data, 2); } }