From 0e5d6d1a251edc8f486f2603692a395f21aa2c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kiss?= Date: Mon, 9 Oct 2017 23:20:06 +0200 Subject: [PATCH] refactor(device): Rename UserConfigSize => MaxUserConfigSize (#436) Rename SystemPropertyIds.UserConfigSize => SystemPropertyIds.MaxUserConfigSize because it better describe which date will return from device --- packages/uhk-agent/src/services/device.service.ts | 2 +- packages/uhk-usb/src/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uhk-agent/src/services/device.service.ts b/packages/uhk-agent/src/services/device.service.ts index 08161d9e..2e3da26a 100644 --- a/packages/uhk-agent/src/services/device.service.ts +++ b/packages/uhk-agent/src/services/device.service.ts @@ -47,7 +47,7 @@ export class DeviceService { public async loadConfigurations(event: Electron.Event): Promise { try { const userConfiguration = await this.loadConfiguration( - SystemPropertyIds.UserConfigSize, + SystemPropertyIds.MaxUserConfigSize, UsbCommand.ReadUserConfig, 'user configuration'); diff --git a/packages/uhk-usb/src/constants.ts b/packages/uhk-usb/src/constants.ts index 70f416f0..da6c15f4 100644 --- a/packages/uhk-usb/src/constants.ts +++ b/packages/uhk-usb/src/constants.ts @@ -31,5 +31,5 @@ export enum SystemPropertyIds { DataModelVersion = 2, FirmwareVersion = 3, HardwareConfigSize = 4, - UserConfigSize = 5 + MaxUserConfigSize = 5 }