Skip to content

Commit ad3777a

Browse files
mattgodboltCopilot
andauthored
Update src/adc.js
Co-authored-by: Copilot <[email protected]>
1 parent 3bbc096 commit ad3777a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class Adc {
139139
const channel = this.status & 0x03;
140140

141141
const source = this.channelSources[channel];
142-
const val = source ? source.getValue(channel) | 0 : 0x8000;
142+
const val = source ? source.getValue(channel) : 0x8000;
143143

144144
this.status = (this.status & 0x0f) | 0x40 | ((val >>> 10) & 0x03);
145145
this.low = val & 0xff;

0 commit comments

Comments
 (0)