Skip to content

Commit

Permalink
Rename "cx_devices" command to "conn_devices"
Browse files Browse the repository at this point in the history
  • Loading branch information
shermp committed Sep 7, 2024
1 parent 2244216 commit 376e436
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/command_protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ Note: examples below include whitespace for clarity. They MUST be packed for tra

```json
{
"cmd": "cx_devices"
"cmd": "conn_devices"
}
```

#### Response

```json
{
"cmd": "cx_devices",
"cmd": "conn_devices",
"devices": [
{
"addr": "1A:2B:3C:4D:5E:6F",
Expand Down
2 changes: 1 addition & 1 deletion src/asha_bt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ static void handle_stdin_line_worker(async_context_t *context, async_when_pendin
settings["uart_enabled"] = runtime_settings.serial_uart_enabled;
settings["full_set_paired"] = runtime_settings.full_set_paired;

} else if (cmd_is(SerCmd::CxDevices)) {
} else if (cmd_is(SerCmd::ConnDevices)) {
JsonArray devices = resp_doc["devices"].to<JsonArray>();
for (auto& ha : ha_mgr.hearing_aids) {
JsonObject dev = devices.add<JsonObject>();
Expand Down
2 changes: 1 addition & 1 deletion src/asha_usb_serial.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace asha
namespace SerCmd {
constexpr const char AshaFWVers[] = "asha_fw_ver";
constexpr const char Status[] = "status";
constexpr const char CxDevices[] = "cx_devices";
constexpr const char ConnDevices[] = "conn_devices";
constexpr const char Unpair[] = "unpair";
constexpr const char ClearDevDb[] = "clear_dev_db";
constexpr const char WaitUSBSerCx[] = "wait_usb_ser_cx";
Expand Down

0 comments on commit 376e436

Please sign in to comment.