mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-29 08:13:53 +08:00
can loopback only on debug builds (#2496)
This commit is contained in:
committed by
firestar5683
parent
2f79817938
commit
b3095eaaff
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user