|
@@ -142,10 +142,10 @@ namespace FietsClientV2
|
|
|
|
|
|
|
|
public bool checkBikeState(bool commandMode)
|
|
public bool checkBikeState(bool commandMode)
|
|
|
{
|
|
{
|
|
|
- if (ComPort == null || ComPort.IsOpen)
|
|
|
|
|
|
|
+ if (ComPort == null || !ComPort.IsOpen)
|
|
|
{
|
|
{
|
|
|
- return false;
|
|
|
|
|
state = State.notConnected;
|
|
state = State.notConnected;
|
|
|
|
|
+ return false;
|
|
|
}
|
|
}
|
|
|
switch (state)
|
|
switch (state)
|
|
|
{
|
|
{
|