Skip to content

Commit c7e2da0

Browse files
committed
minor changes
* Add more point of errorLog; * Set minimum window size.
1 parent b00b957 commit c7e2da0

3 files changed

Lines changed: 15 additions & 8 deletions

File tree

LighthouseV2PowerControl/Form1.Designer.cs

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LighthouseV2PowerControl/Form1.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,19 @@ private async Task GetGattCharacteristicsAsync()
8585
listGattCharacteristics.Add(characteristics[j]);
8686
}
8787
}
88+
else
89+
{
90+
LogError($"Characteristics {gattRes.Status};");
91+
}
8892
}
8993
}
94+
else
95+
{
96+
LogError($"Sevices {result.Status};");
97+
}
9098
}
9199

92-
Log($"lighthouses found: {listGattCharacteristics.Count}");
100+
Log($"lighthouses found: {listGattCharacteristics.Count};");
93101
if (listGattCharacteristics.Count > 0)
94102
{
95103
btnStop.Enabled = btnStart.Enabled = true;
@@ -105,11 +113,11 @@ private async Task SendOnLighthouseAsync(byte byte4send)
105113
GattCommunicationStatus resWrite = await listGattCharacteristics[i].WriteValueAsync(writer.DetachBuffer());
106114
if (resWrite == GattCommunicationStatus.Success)
107115
{
108-
Log($"Success");
116+
Log($"Success;");
109117
}
110118
else
111119
{
112-
LogError($"lighthouse: {resWrite}");
120+
LogError($"lighthouse {i + 1}: {resWrite};");
113121
}
114122
}
115123
}

LighthouseV2PowerControl/LighthouseV2PowerControl.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@
119119
</BootstrapperPackage>
120120
</ItemGroup>
121121
<ItemGroup>
122-
<Content Include="iocn.ico" />
123122
<Content Include="newIcon.ico" />
124-
<Content Include="Vive2018.ico" />
125123
</ItemGroup>
126124
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
127125
</Project>

0 commit comments

Comments
 (0)