Skip to content

Commit

Permalink
Allow "mesh check" to trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
dpup committed Sep 9, 2024
1 parent 4fb43dd commit 0f8e04f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Run check-mate:

python3 check-mate.py --host meshtastic.local --location 'Base Camp'

Then in a private channel on a different node to the one connected to `check-mate` send a message containing `radio check` or `mesh check` (case insensitive and spaces are ignored).

### Arguments

| Arg | Env | Description |
Expand Down
2 changes: 1 addition & 1 deletion check-mate.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def onReceive(self, packet, interface):
self.logger.info("[Ignoring default channel] %s: %s", name, text)
return

if not re.search(r"radio\s*check", text, re.IGNORECASE):
if not re.search(r"(mesh|radio)\s*check", text, re.IGNORECASE):
self.logger.info(
"[Not a radio check] %s (channel %d): %s %d",
name,
Expand Down

0 comments on commit 0f8e04f

Please sign in to comment.