提交 e1224855 编写于 作者: K Kunal Tyagi

Fixing 6 MISRA rules

Relies on #3615 to do the toggling
上级 58e1b1eb
......@@ -94,15 +94,11 @@ class SimpleOpenNIProcessor
do
{
key = static_cast<char> (getchar ());
switch (key)
if (key == ' ')
{
case ' ':
if (interface.isRunning ())
interface.stop ();
else
interface.start ();
interface.toggle ();
}
} while (key != 27 && key != 'q' && key != 'Q');
} while ((key != 27) && (key != 'q') && (key != 'Q'));
// stop the grabber
interface.stop ();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册