This commit is contained in:
Mike Schwörer 2017-05-11 21:26:21 +02:00
parent 32c360ebb8
commit 62bec2f317
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 3 additions and 2 deletions

View File

@ -119,7 +119,7 @@ namespace PIC_Simulator.PIC
public List<int> Breakpoints = new List<int>();
public int TaktgeberFrequenz = 100000;
public int TaktgeberZahler = 100000;
public int TaktgeberZahler = 0;
public bool TaktgeberAktiviert = false;
public uint TaktgeberAdresse = 0;
public uint TaktgeberBitnummer = 0;
@ -188,7 +188,7 @@ namespace PIC_Simulator.PIC
if (cmd[i] == 'b' && bin[i] == '0') { p_b <<= 1; p_b |= 0; continue; }
if (cmd[i] == 'b' && bin[i] == '1') { p_b <<= 1; p_b |= 1; continue; }
if (cmd[i] == '0' && bin[i] == '1') { ok = false; break; }
if (cmd[i] == '1' && bin[i] == '0') { ok = false; continue; }
if (cmd[i] == '1' && bin[i] == '0') { ok = false; break; }
throw new Exception("Falscher wert in cmd");
}

View File

@ -41,6 +41,7 @@ namespace PIC_Simulator.PIC
List<string> result = new List<string>();
ArrayComPortsNames = SerialPort.GetPortNames();
if (ArrayComPortsNames.Length == 0) return result;
do
{
index += 1;