Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Korrektur
Browse files Browse the repository at this point in the history
  • Loading branch information
milindur committed Sep 26, 2015
1 parent 096cdfb commit ddb1d93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MDKControl.Core/Models/MoCoBusHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static class MoCoBusHelper
{
public static dynamic ParseStatus(MoCoBusFrame frame)
{
if (frame != null && frame.Length == 0) return null;
if (frame == null || frame.Length == 0) return null;

switch ((MoCoBusStatusType)frame.Data[0])
{
Expand Down
6 changes: 5 additions & 1 deletion MDKControl.Core/ViewModels/DeviceViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ private async void CommServiceOnConnectionChanged(object sender, EventArgs e)
{
await UpdateState().ConfigureAwait(false);
}

else
{
await StopUpdateTask().ConfigureAwait(false);
}

_dispatcherHelper.RunOnUIThread(() =>
{
RaisePropertyChanged(() => IsConnected);
Expand Down

0 comments on commit ddb1d93

Please sign in to comment.