mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Apply less filtering on CAN signals
This commit is contained in:
parent
4c9a08b8c0
commit
997c9092a8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue