stuff
This commit is contained in:
parent
32c360ebb8
commit
62bec2f317
@ -119,7 +119,7 @@ namespace PIC_Simulator.PIC
|
|||||||
public List<int> Breakpoints = new List<int>();
|
public List<int> Breakpoints = new List<int>();
|
||||||
|
|
||||||
public int TaktgeberFrequenz = 100000;
|
public int TaktgeberFrequenz = 100000;
|
||||||
public int TaktgeberZahler = 100000;
|
public int TaktgeberZahler = 0;
|
||||||
public bool TaktgeberAktiviert = false;
|
public bool TaktgeberAktiviert = false;
|
||||||
public uint TaktgeberAdresse = 0;
|
public uint TaktgeberAdresse = 0;
|
||||||
public uint TaktgeberBitnummer = 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] == '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] == 'b' && bin[i] == '1') { p_b <<= 1; p_b |= 1; continue; }
|
||||||
if (cmd[i] == '0' && bin[i] == '1') { ok = false; break; }
|
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");
|
throw new Exception("Falscher wert in cmd");
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,7 @@ namespace PIC_Simulator.PIC
|
|||||||
List<string> result = new List<string>();
|
List<string> result = new List<string>();
|
||||||
|
|
||||||
ArrayComPortsNames = SerialPort.GetPortNames();
|
ArrayComPortsNames = SerialPort.GetPortNames();
|
||||||
|
if (ArrayComPortsNames.Length == 0) return result;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
index += 1;
|
index += 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user