UNPKG

@ledgerhq/live-common

Version:
16 lines 713 B
import { DeviceModelId } from "@ledgerhq/devices"; type Props = { deviceModelId: DeviceModelId; version: string; }; /** * This code enforces a maximum device name length on the Live side due to a bug * in LNX <2.2.0 that breaks the BLE stack if the name is longer than 17 characters. * To ensure consistency with the maximum length that can be set on Stax (23), the * visible characters (20), and the maximum APDU-driven rename length (30), this * patch introduces a maximum length of 20 characters until all inconsistencies * are aligned. */ declare const getDeviceNameMaxLength: (props: Props) => number; export default getDeviceNameMaxLength; //# sourceMappingURL=getDeviceNameMaxLength.d.ts.map