@mchp-mcc/clc-16bit-driver
Advanced tools
Comparing version 1.0.3 to 1.0.4
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
## [1.0.4] - 2023-06-28 | ||
### Bug Fixes | ||
- **CC16SCRIP-6889** :- Updated notifications for input source selections | ||
## [1.0.3] - 2023-04-26 | ||
@@ -5,0 +11,0 @@ |
@@ -9,2 +9,8 @@ { | ||
} | ||
}, | ||
"device_meta": { | ||
"interfaceId": { | ||
"name": "device-meta", | ||
"version": "1.0.0" | ||
} | ||
} | ||
@@ -11,0 +17,0 @@ }, |
{ | ||
"name": "@mchp-mcc/clc-16bit-driver", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"scf": { | ||
@@ -5,0 +5,0 @@ "reducer": "output/reducer.js", |
@@ -39,2 +39,8 @@ # MCC Melody CLC Driver | ||
## [1.0.4] - 2023-06-28 | ||
### Bug Fixes | ||
- **CC16SCRIP-6889** :- Updated notifications for input source selections | ||
## [1.0.3] - 2023-04-26 | ||
@@ -41,0 +47,0 @@ |
@@ -44,2 +44,10 @@ { | ||
} | ||
}, | ||
"device_meta": { | ||
"import": { | ||
"interfaceId": { | ||
"name": "device-meta", | ||
"version": "1.0.0" | ||
} | ||
} | ||
} | ||
@@ -46,0 +54,0 @@ }, |
@@ -17,4 +17,5 @@ const CMP = "CMP"; | ||
clcInstance: string | undefined, | ||
deviceSuffix: string, | ||
): string | undefined => { | ||
let notificationMessage; | ||
let notificationMessage: string | undefined = "Load"; | ||
@@ -26,5 +27,11 @@ if (sourceName == undefined) { | ||
const moduleInstance = getInstanceNumber(moduleName, sourceName); | ||
if (/^S1/.test(sourceName) && deviceSuffix === "") | ||
notificationMessage = "In Secondary Device, load"; | ||
else if (/^Main/.test(sourceName) && deviceSuffix == "S1") | ||
notificationMessage = "In Main Device, load"; | ||
switch (moduleName) { | ||
case CMP: | ||
notificationMessage = `Load CMP_DAC driver, select CMP${moduleInstance} PLIB and configure CMP${moduleInstance} output pin.`; | ||
notificationMessage += ` CMP_DAC driver, select CMP${moduleInstance} PLIB and configure CMP${moduleInstance} output pin.`; | ||
break; | ||
@@ -39,2 +46,3 @@ case PWM_EVENT: | ||
clcInstance, | ||
notificationMessage, | ||
); | ||
@@ -107,3 +115,8 @@ break; | ||
function getCLCNotification(sourceName: string, moduleInstance, clcInstance): string { | ||
function getCLCNotification( | ||
sourceName: string, | ||
moduleInstance, | ||
clcInstance, | ||
notificationMessage, | ||
): string { | ||
if (sourceName.match(CLC_PIN_REGEX)) { | ||
@@ -113,5 +126,6 @@ return `Configure the ${sourceName}.`; | ||
if (moduleInstance === clcInstance) { | ||
return `Configure CLC${moduleInstance} output pin.`; | ||
notificationMessage = notificationMessage.replace(/[L|l]oad/, ""); | ||
return `${notificationMessage}Configure CLC${moduleInstance} output pin.`; | ||
} else { | ||
return `Load CLC Driver, select CLC${moduleInstance} PLIB and configure CLC${moduleInstance} output pin.`; | ||
return `${notificationMessage} CLC Driver, select CLC${moduleInstance} PLIB and configure CLC${moduleInstance} output pin.`; | ||
} | ||
@@ -118,0 +132,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25867442
29119
62