mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Use correct can interface with LEAF_1F2
This commit is contained in:
parent
32d762b19b
commit
dde9e3359b
1 changed files with 1 additions and 1 deletions
|
@ -646,7 +646,7 @@ void NissanLeafBattery::transmit_can(unsigned long currentMillis) {
|
|||
|
||||
//Only send this message when NISSANLEAF_CHARGER is not defined (otherwise it will collide!)
|
||||
if (!charger || charger->type() != ChargerType::NissanLeaf) {
|
||||
transmit_can_frame(&LEAF_1F2, can_config.battery);
|
||||
transmit_can_frame(&LEAF_1F2, can_interface);
|
||||
}
|
||||
|
||||
mprun10r = (mprun10r + 1) % 20; // 0x1F2 patter repeats after 20 messages. 0-1..19-0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue