From 81d7240bd9e4c664902004ded252b0e754ededae Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Mon, 22 Jan 2024 10:45:27 -0700 Subject: [PATCH] AP_Periph: fix can mirroring --- Tools/AP_Periph/can.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/AP_Periph/can.cpp b/Tools/AP_Periph/can.cpp index 94aba74057..80ae6fbc4f 100644 --- a/Tools/AP_Periph/can.cpp +++ b/Tools/AP_Periph/can.cpp @@ -1292,7 +1292,7 @@ void AP_Periph_FW::processRx(void) if (other_instance.mirror_queue == nullptr) { // we aren't mirroring here, or failed on memory continue; } - if (other_instance.index == ins.index) { // don't self add + if (other_instance.index == instance.index) { // don't self add continue; } other_instance.mirror_queue->push(rxmsg);