diff --git a/client/src/cmdbwm.c b/client/src/cmdbwm.c index b48b77c25..c26f5fb75 100644 --- a/client/src/cmdbwm.c +++ b/client/src/cmdbwm.c @@ -722,7 +722,7 @@ static int CmdBwmName(const char *Cmd) { "hw bwm name --set MyPM5 --> set BLE name to 'MyPM5'"); void *argtable[] = { arg_param_begin, - arg_str0(NULL, "set", "", "new BLE name (1-31 chars); omit to read current name"), + arg_str0(NULL, "set", "", "new BLE name (1-15 chars); omit to read current name"), arg_param_end, }; CLIExecWithReturn(ctx, Cmd, argtable, true); diff --git a/include/pm3_cmd.h b/include/pm3_cmd.h index c94e92aa2..b03cd6c27 100644 --- a/include/pm3_cmd.h +++ b/include/pm3_cmd.h @@ -978,7 +978,7 @@ typedef struct { #define CMD_PM5_BWM_BLE_NAME 0x017F // payload: [action:u8][name bytes if SET] #define BWM_BLE_NAME_ACTION_GET 0x00 // resp: current BLE device name string #define BWM_BLE_NAME_ACTION_SET 0x01 // req: name bytes follow the action byte; BWM reboots to apply -#define BWM_BLE_NAME_MAX_LEN 15 // usable chars; ESP name buffer is 16 incl NUL +#define BWM_BLE_NAME_MAX_LEN 15 // usable chars; BLE advert fits at most 17 // PM5, toggle the power-save idle (48 MHz + WFI when idle). Used by `hw powersave`. #define CMD_PM5_POWERSAVE 0x0180 // PM5, BWM power-save switch on the ESP (DFS, light sleep, low-duty advertising;