Apply less filtering on CAN signals

This commit is contained in:
Daniel Öster 2024-06-14 00:05:20 +03:00 committed by GitHub
parent 4c9a08b8c0
commit 997c9092a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -228,7 +228,7 @@ int CAN_init() {
* 1 -> triple; the bus is sampled three times; recommended for low/medium speed buses (class A and B) where
* filtering spikes on the bus line is beneficial 0 -> single; the bus is sampled once; recommended for high speed
* buses (SAE class C)*/
MODULE_CAN->BTR1.B.SAM = 0x1;
MODULE_CAN->BTR1.B.SAM = 0x0;
// enable all interrupts
MODULE_CAN->IER.U = 0xef; //ESP32 V3 0XEF ESP32 NOT V3 0XFF
@ -298,4 +298,4 @@ int CAN_config_filter(const CAN_filter_t* p_filter) {
__filter.AMR3 = p_filter->AMR3;
return 0;
}
}