Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-40: MAX_PING_TIME_INTERVAL should be 24 hours, 24 not minutes #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -136,6 +136,10 @@ static void
ping_interval = MAX_PING_TIME_INTERVAL;
}

sl_log_debug(LOG_TAG,
"Scheduling NOP command in %lu ms for NodeID: %d.",
ping_interval,
node_id);
attribute_store_set_reported(ping_interval_node,
&ping_interval,
sizeof(ping_interval));
Expand Down
Expand Up @@ -50,7 +50,7 @@
#define FL_NODE_PING_TIME_FACTOR 4

// Maximum time we settle on between ping intervals:
#define MAX_PING_TIME_INTERVAL (24 * 60 * CLOCK_SECOND)
#define MAX_PING_TIME_INTERVAL (24 * 60 * 60 * CLOCK_SECOND) // 24 hours

#ifdef __cplusplus
extern "C" {
Expand Down