Skip to content

Commit 591a7d9

Browse files
committed
change leafpack.hpp
1 parent 02bde2f commit 591a7d9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packs/Nissan/LeafPack.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ class LeafPack: public can::FrameSink
5151
bool m_reboot_in_process;
5252
bool m_shunt_fail_msg_logged;
5353
unsigned m_reboot_wait_count;
54+
const uint REBOOT_WAIT_PERIODS = 5 * 60 * 1000 / PACK_CALLBACK_PERIOD_ms;
55+
unsigned m_failsafe_count;
56+
const uint FAILSAFE_COUNT = 10 * 1000 / PACK_CALLBACK_PERIOD_ms;
5457

5558
void heartbeatCallback();
5659
const uint PACK_CALLBACK_PERIOD_ms = 1000;
5760
const uint PACK_SILENT_TIMEOUT_PERIODS = 60 * 1000 / PACK_CALLBACK_PERIOD_ms;
58-
const uint REBOOT_WAIT_PERIODS = 5 * 60 * 1000 / PACK_CALLBACK_PERIOD_ms;
5961
const uint REBOOT_POWERDOWN_PERIODS = 10 * 1000 / PACK_CALLBACK_PERIOD_ms;
6062
const float MAX_SHUNT_OPEN_CURRENT = 1.01;
6163
const uint MAX_PACK_STARTUP_COUNT = 5 * 60 * 1000 / PACK_CALLBACK_PERIOD_ms;

0 commit comments

Comments
 (0)