diff options
| author | Uri Shaked | 2025-02-11 10:31:57 +0200 |
|---|---|---|
| committer | Uri Shaked | 2025-02-11 10:31:57 +0200 |
| commit | 9ce22e49cf1110d0a8c1943877dc32e6568354cc (patch) | |
| tree | 6ad61569ee9a311b5ca8f330948b2136b2c04ed5 /src/peripherals/adc.ts | |
| parent | chore: replace ts-node with tsx (diff) | |
| download | avr8js-9ce22e49cf1110d0a8c1943877dc32e6568354cc.tar.gz avr8js-9ce22e49cf1110d0a8c1943877dc32e6568354cc.tar.bz2 avr8js-9ce22e49cf1110d0a8c1943877dc32e6568354cc.zip | |
chore(deps): upgrade prettier
reformat all code with the new prettier version
Diffstat (limited to 'src/peripherals/adc.ts')
| -rw-r--r-- | src/peripherals/adc.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/peripherals/adc.ts b/src/peripherals/adc.ts index 1e0e2d1..16ccdba 100644 --- a/src/peripherals/adc.ts +++ b/src/peripherals/adc.ts @@ -163,7 +163,10 @@ export class AVRADC { enableMask: ADIE, }; - constructor(private cpu: CPU, private config: ADCConfig) { + constructor( + private cpu: CPU, + private config: ADCConfig, + ) { cpu.writeHooks[config.ADCSRA] = (value, oldValue) => { if (value & ADEN && !(oldValue && ADEN)) { this.conversionCycles = 25; |
