We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bca2f6 commit 688eba3Copy full SHA for 688eba3
src/peripherals/timer.ts
@@ -320,10 +320,10 @@ export class AVRTimer {
320
this.ocrB = this.nextOcrB;
321
}
322
};
323
- this.cpu.writeHooks[config.ICR] = (value: u8) => {
324
- this.icr = (this.highByteTemp << 8) | value;
325
- };
326
if (this.config.bits === 16) {
+ this.cpu.writeHooks[config.ICR] = (value: u8) => {
+ this.icr = (this.highByteTemp << 8) | value;
+ };
327
const updateTempRegister = (value: u8) => {
328
this.highByteTemp = value;
329
0 commit comments