From 71e86af70c561bea00a527790ab6d426d72dbee2 Mon Sep 17 00:00:00 2001 From: "GT, Shreya" Date: Tue, 30 Jul 2024 16:31:24 +0530 Subject: [PATCH] TSP-757 Update changelog --- CHANGELOG.md | 1 + src/resourceManager.ts | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba17dbf..d8bb63d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how ### Added - Add logging for terminal and discover +- Default friendly name if user doesn't provide one (TSP-757) ## [0.16.4] diff --git a/src/resourceManager.ts b/src/resourceManager.ts index 27f3cef..c2bb84b 100644 --- a/src/resourceManager.ts +++ b/src/resourceManager.ts @@ -118,6 +118,14 @@ export class FriendlyNameMgr { return handled } + /** + * method generates unique friendly name for instrument if user + * does not provide one + * + * @param io_type - Lan, Usb etc. + * @param model_serial - model and serial number of instrument + * @returns - unique friendly name for given instrument + */ public static generateUniqueName( io_type: IoType, model_serial: string | undefined