can loopback only on debug builds (#2496)

This commit is contained in:
Daniel Koepping
2026-11-28 11:50:18 -06:00
committed by firestar5683
parent 2f79817938
commit b3095eaaff
+2
View File
@@ -309,10 +309,12 @@ int comms_control_handler(ControlPacket_t *req, uint8_t *resp) {
}
break;
// **** 0xe5: set CAN loopback (for testing)
#ifdef ALLOW_DEBUG
case 0xe5:
can_loopback = req->param1 > 0U;
can_init_all();
break;
#endif
// **** 0xe6: set custom clock source period and pulse length
case 0xe6:
clock_source_set_timer_params(req->param1, req->param2);