未验证 提交 9a9d5611 编写于 作者: А Александр Казакевич 提交者: GitHub

Fix unreliable code branch (#1406)

* Fix unreliable code branch

* Update src/devices/Pca9685/samples/Program.cs
Co-authored-by: NKrzysztof Wicher <mordotymoja@gmail.com>
Co-authored-by: NKrzysztof Wicher <mordotymoja@gmail.com>
上级 b5c64b4d
......@@ -115,7 +115,12 @@ void ServoDemo(Pca9685 pca9685, int channel)
while (true)
{
string? command = Console.ReadLine()?.ToLower();
if (command?[0] is not 'q')
if (command is null)
{
return;
}
if (command[0] is 'q')
{
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册