rp2040js 0.17.6 → 0.17.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -159,7 +159,7 @@ class RPADC extends peripheral_1.BasePeripheral {
159
159
  if (this.fcs & FCS_SHIFT) {
160
160
  value >>= 4;
161
161
  }
162
- if (this.fcs & FCS_ERR) {
162
+ if (error && this.fcs & FCS_ERR) {
163
163
  value |= FIFO_ERR;
164
164
  }
165
165
  this.fifo.push(value);
@@ -156,7 +156,7 @@ export class RPADC extends BasePeripheral {
156
156
  if (this.fcs & FCS_SHIFT) {
157
157
  value >>= 4;
158
158
  }
159
- if (this.fcs & FCS_ERR) {
159
+ if (error && this.fcs & FCS_ERR) {
160
160
  value |= FIFO_ERR;
161
161
  }
162
162
  this.fifo.push(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rp2040js",
3
- "version": "0.17.6",
3
+ "version": "0.17.7",
4
4
  "description": "Raspberry Pi Pico (RP2040) Emulator",
5
5
  "repository": "https://github.com/wokwi/rp2040js",
6
6
  "keywords": [