Skip to content

Commit 6f692b8

Browse files
author
NoahAndrews
committed
Check for expired heartbeats more frequently
1 parent e29d4b1 commit 6f692b8

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
@@ -648,7 +648,7 @@ void writeDfuToBin(const Napi::CallbackInfo& info) {
648648

649649
void heartbeatsWatchdog() {
650650
while (true) {
651-
std::this_thread::sleep_for (std::chrono::seconds(1));
651+
std::this_thread::sleep_for (std::chrono::milliseconds(250));
652652

653653
{
654654
// Erase removed CAN buses from heartbeatsRunning

0 commit comments

Comments
 (0)