Use correct can interface with LEAF_1F2

This commit is contained in:
Jaakko Haakana 2025-05-10 16:37:03 +03:00
parent 32d762b19b
commit dde9e3359b

View file

@ -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