Skip to content

Commit

Permalink
Client: fixed minimum polling-interval (4000 -> 6000)
Browse files Browse the repository at this point in the history
  • Loading branch information
DvaMishkiLapa committed Nov 11, 2024
1 parent 9bcd562 commit ea114c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 26 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Options:
-p, --port port to connect to (default: 5000)
-c, --config buttons and touchpads config (default: standart)
--polling-interval
polling interval in microseconds (minimum = 4000)
polling interval in microseconds (minimum = 6000)
-d, --debug enable debug mode
-v, --version show version information
-s, --sample-config
Expand Down
22 changes: 0 additions & 22 deletions client/config.toml

This file was deleted.

4 changes: 2 additions & 2 deletions client/packages/cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl Default for Config {
ip: Some("192.168.0.100".to_string()),
port: Some(5000),
configuration: Some("standart".to_string()),
polling_interval: Some(4000),
polling_interval: Some(6000),
debug: Some(false),
}
}
Expand Down Expand Up @@ -123,7 +123,7 @@ port = 5000
config = "standart"
# Polling interval in microseconds
polling_interval = 4000
polling_interval = 6000
# Enable or disable debug mode
debug = false"#);
Expand Down
2 changes: 1 addition & 1 deletion client/packages/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct Args {
#[argh(option, short = 'c')]
configuration: Option<String>,

/// polling interval in microseconds (minimum = 4000)
/// polling interval in microseconds (minimum = 6000)
#[argh(option)]
polling_interval: Option<u64>,

Expand Down

0 comments on commit ea114c3

Please sign in to comment.