Skip to content

Commit

Permalink
misc: adjust logging for delay
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroo committed Feb 10, 2025
1 parent dee2680 commit 1605713
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parser/src/cfg/fake_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ fn parse_delay(
is_release: bool,
s: &ParserState,
) -> Result<&'static KanataAction> {
const ERR_MSG: &str = "fakekey-delay expects a single number (ms, 0-65535)";
log::warn!("The configuration contains a fakekey-delay action. This is broken for many use cases. It is recommended to use macro instead.");
const ERR_MSG: &str = "delay expects a single number (ms, 0-65535)";
let delay = ac_params[0]
.atom(s.vars())
.map(str::parse::<u16>)
Expand Down

0 comments on commit 1605713

Please sign in to comment.