aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals/adc.ts
diff options
context:
space:
mode:
authorUri Shaked2025-02-11 10:31:57 +0200
committerUri Shaked2025-02-11 10:31:57 +0200
commit9ce22e49cf1110d0a8c1943877dc32e6568354cc (patch)
tree6ad61569ee9a311b5ca8f330948b2136b2c04ed5 /src/peripherals/adc.ts
parentchore: replace ts-node with tsx (diff)
downloadavr8js-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 '')
-rw-r--r--src/peripherals/adc.ts5
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;