Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mchp-mcc/clc-16bit-driver

Package Overview
Dependencies
Maintainers
7
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mchp-mcc/clc-16bit-driver - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

6

Changelog.md
# 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 @@ },

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc