Skip to content

Commit dd0c9d8

Browse files
[DNM] Test Formatting Check output on invalid formatting
1 parent bc68408 commit dd0c9d8

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/Emulator/Main/Peripherals/Timers/LimitTimer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ public bool Interrupt
162162
}
163163
}
164164

165-
public bool AutoUpdate { get; set; }
166-
167165
public ulong Limit
168166
{
169167
get
@@ -300,6 +298,8 @@ protected void ClearSubscriptions()
300298
LimitReached = null;
301299
}
302300

301+
public bool AutoUpdate { get; set; }
302+
303303
protected virtual void OnLimitReached()
304304
{
305305
lock(irqSync)
@@ -360,4 +360,4 @@ private void RequestReturnOnCurrentCpu()
360360
private readonly IPeripheral owner;
361361
private readonly string localName;
362362
}
363-
}
363+
}

src/Emulator/Main/Time/ClockEntry.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ public ClockEntry With(ulong? period = null, ulong? frequency = null, Action han
7272
// Ratio - i.e. how many emulator ticks are needed for this clock entry tick
7373
public Fraction Ratio { get; }
7474

75-
private static Fraction FrequencyToRatio(ulong desiredFrequency)
76-
{
75+
private static Fraction FrequencyToRatio(ulong desiredFrequency) {
7776
var maxHz = TimeInterval.TicksPerSecond;
7877
return new Fraction(desiredFrequency, maxHz);
7978
}
8079
}
81-
}
80+
}

src/Emulator/Peripherals/Peripherals/UART/NS16550.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void WriteChar(byte value)
3737
else
3838
{
3939
if((lineStatus & LineStatus.DataReady) != 0)
40-
{
40+
{
4141
lineStatus |= LineStatus.OverrunErrorIndicator;
4242
}
4343
receiverBuffer = value;
@@ -624,4 +624,4 @@ private enum FifoControl : byte
624624
IrqTriggerLevel4 = 0xC0
625625
}
626626
}
627-
}
627+
}

0 commit comments

Comments
 (0)