1
0
mirror of https://github.com/livingcomputermuseum/Darkstar.git synced 2026-02-27 01:19:54 +00:00

Cleanup after ethernet fix.

This commit is contained in:
Josh Dersch
2019-03-29 09:43:38 -07:00
parent bc5e287a9e
commit b6d1bb5837
2 changed files with 5 additions and 12 deletions

View File

@@ -354,13 +354,6 @@ namespace D.Ethernet
value, _fifo.Count);
_debugPacket.Add(value);
Console.WriteLine("addr 0x{0:x4} count {1} char {2}{3}",
_system.CP.TPC[(int)_system.CP.CurrentTask],
_fifo.Count + 1,
GetPrintableChar((byte)(value >> 8)),
GetPrintableChar((byte)(value))
);
}
else
{
@@ -969,13 +962,13 @@ namespace D.Ethernet
//
// Receive event, timing, and thread safety
//
private readonly ulong _receiveInterval = 1200;
private readonly ulong _receiveInterval = 1600;
private readonly ulong _receiveIntervalLoopback = 25600;
private bool _receiverRunning;
private ReceiverState _receiverState;
private Event _receiveEvent;
private readonly ulong _receiverPollInterval = (ulong)(51000.2 * Conversion.UsecToNsec);
private readonly ulong _receiverPollInterval = (ulong)(51.2 * Conversion.UsecToNsec);
private ReaderWriterLockSlim _readerLock;

View File

@@ -108,9 +108,9 @@ namespace D.Logging
{
static Log()
{
Enabled = true;
_components = LogComponent.EthernetPacket;
_type = LogType.All;
Enabled = false;
_components = LogComponent.None;
_type = LogType.None;
_logIndex = 0;
}