Skip to content

Commit

Permalink
🐛 Fix bandwidth setting: H to N
Browse files Browse the repository at this point in the history
  • Loading branch information
SydneyOwl committed Jun 24, 2024
1 parent 458118c commit 9b04c8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Constants/Shx8x00/CHAN_CHOICE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class ChanChoice
public static ObservableCollection<string> Bandwidth = new()
{
"W",
"H"
"N"
};

public static ObservableCollection<string> Pttid = new()
Expand Down
13 changes: 6 additions & 7 deletions ble_plugins/BLEPlugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ func StartBleWrite(ctx context.Context, bleSendChan chan []byte) {
}(ctx, bleSendChan)
}

// StartRPC 使用JSONRPC规范
func StartRPC(addr string) {
c, _, err := websocket.DefaultDialer.Dial(addr, nil)
if err != nil {
Expand Down Expand Up @@ -428,13 +427,13 @@ func main() {
StartRPC(fmt.Sprintf("ws://%s:%d/rpc", rpcAddress, rpcPort))
},
}
BaseCmd.PersistentFlags().IntVar(&rpcPort, "port", 8563, "RPC Server port")
BaseCmd.PersistentFlags().BoolVar(&noColorOutput, "no-color", false, "No color output in console")
BaseCmd.PersistentFlags().StringVar(&rpcAddress, "address", "127.0.0.1", "RPC Server address")
BaseCmd.PersistentFlags().BoolVar(&verbose, "verbose", false, "Print Debug Level logs")
BaseCmd.PersistentFlags().IntVarP(&rpcPort, "port", "p", 8563, "RPC Server port")
BaseCmd.PersistentFlags().BoolVarP(&noColorOutput, "no-color", "n", false, "No color output in console")
BaseCmd.PersistentFlags().StringVarP(&rpcAddress, "address", "a", "127.0.0.1", "RPC Server address")
BaseCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Print Debug Level logs")
BaseCmd.PersistentFlags().BoolVar(&vverbose, "vverbose", false, "Print Debug/Trace Level logs")
BaseCmd.PersistentFlags().BoolVar(&runTest, "run-test", false, "Execute test")
BaseCmd.PersistentFlags().BoolVar(&insideCall, "inside-call", false, "Call from rpc server")
BaseCmd.PersistentFlags().BoolVarP(&runTest, "run-test", "t", false, "Execute test")
BaseCmd.PersistentFlags().BoolVarP(&insideCall, "inside-call", "i", false, "Call from rpc server")
cobra.MousetrapHelpText = ""
if err := BaseCmd.Execute(); err != nil {
fmt.Printf("程序无法启动: %v", err)
Expand Down

0 comments on commit 9b04c8d

Please sign in to comment.