Skip to content

Commit

Permalink
fix(conf): config
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Apr 6, 2023
1 parent aef2a85 commit fae5143
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions conf/simulation-mqtt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ ncpio:
- type: jsonrpc2
params: "233"
i_rules:
- regexp: '.*'
- regexp: '.*"method".*'
o_rules:
- regexp: '.*'
- regexp: '.*"method".*'
invert: true

5 changes: 3 additions & 2 deletions conf/sitl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ ncpio:
- type: jsonrpc2
params: "233"
i_rules:
- regexp: '.*'
- regexp: '.*"method".*'
o_rules:
- regexp: '.*'
- regexp: '.*"method".*'
invert: true

2 changes: 1 addition & 1 deletion ncpio/ncpios.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (n *NcpIOs) Run(ctx context.Context) {
for data := range ncpio.IO.O {
n.Debuger.Printf("<%s> RECV: %s", ncpio.Name, data)
if Filter(ncpio.ORules, data) {
n.Debuger.Printf("<%s> BROADCAST: %s", ncpio.Name, data)
n.Debuger.Printf("<%s> CAST: %s", ncpio.Name, data)
hub <- ncpData{
Name: ncpio.Name,
Data: data,
Expand Down

0 comments on commit fae5143

Please sign in to comment.