Skip to content

Commit 65ca730

Browse files
authored
Merge pull request #313 from NordicSemiconductor/npm2100_gpio_modecontrol_enable
Npm2100 gpio modecontrol enable
2 parents e791920 + d786ae1 commit 65ca730

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

Changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Unreleased
2+
3+
### Fixed
4+
5+
- nPM2100: When the GPIO mode control is selected, the toggle for Load
6+
switch/LDO is now correctly enabled.
7+
18
## 2.2.3 - 2025-09-30
29

310
### Added

src/features/pmicControl/npm/npm2100/ldo/ldoCallbacks.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,13 @@ export default (
105105
toValueRegexString(nPM2100LdoModeControlValues),
106106
),
107107
res => {
108-
const modeControl = parseColonBasedAnswer(
109-
res,
110-
) as nPM2100LdoModeControl;
111108
eventEmitter.emitPartialEvent<Ldo>(
112109
'onLdoUpdate',
113110
{
114111
modeControl: selectFromTypeValues(
115112
parseColonBasedAnswer(res),
116113
nPM2100LdoModeControlValues,
117114
) as nPM2100LdoModeControl,
118-
onOffSoftwareControlEnabled: modeControl !== 'gpio',
119115
},
120116
0,
121117
);

src/features/pmicControl/npm/npm2100/ldo/ldoSet.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ export class LdoSet {
206206
'onLdoUpdate',
207207
{
208208
modeControl,
209-
onOffSoftwareControlEnabled: modeControl !== 'gpio',
210209
},
211210
0,
212211
);

src/features/pmicControl/npm/npm2100/tests/ldo/commandCallbackLdo.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ describe('PMIC 2100 - Command callbacks - LDO', () => {
145145
expect(mockOnLdoUpdate).toBeCalledWith({
146146
data: {
147147
modeControl,
148-
onOffSoftwareControlEnabled: modeControl !== 'gpio',
149148
},
150149
index,
151150
});

0 commit comments

Comments
 (0)