Skip to content

Commit 6472368

Browse files
committed
Update 03-P1P2.ino
1 parent feb50d6 commit 6472368

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arduino-altherma-controller/03-P1P2.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ void processWrite(uint16_t n) {
218218
case PACKET_TYPE_HANDSHAKE: // 0x30
219219
{
220220
d = F030DELAY;
221-
for (byte i = 3; i < n; i++) WB[i] = 0x00;
221+
WB[3] = RB[3]; // trigger packet 0x31 if indicated in 00Fx30 request
222+
WB[4] = RB[4]; // trigger packet 0x32 if indicated in 00Fx30 request
223+
for (byte i = 5; i < n; i++) WB[i] = 0x00; // default response for the rest of the packet
222224
// 00F030 request message received, we will:
223225
// - reply with 40F030 response
224226
// - hijack every 2nd time slot to send request counters

0 commit comments

Comments
 (0)