Skip to content

Commit c7d4a0d

Browse files
committed
Start out with the heartbeat watchdog being expired
1 parent 4537085 commit c7d4a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/canWrapper.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ std::map<std::string, std::shared_ptr<rev::usb::CANDevice>> canDeviceMap;
4545
std::mutex watchdogMtx;
4646
// These values should only be accessed while holding watchdogMtx
4747
std::vector<std::string> heartbeatsRunning;
48-
bool heartbeatTimeoutExpired = false; // Should only be changed in heartbeatsWatchdog()
48+
bool heartbeatTimeoutExpired = true; // Should only be changed in heartbeatsWatchdog()
4949
std::map<std::string, std::array<uint8_t, REV_COMMON_HEARTBEAT_LENGTH>> revCommonHeartbeatMap;
5050
std::map<std::string, std::array<uint8_t, SPARK_HEARTBEAT_LENGTH>> sparkHeartbeatMap;
5151
auto latestHeartbeatAck = std::chrono::steady_clock::now();

0 commit comments

Comments
 (0)