changed code style
This commit is contained in:
@@ -34,7 +34,7 @@ int main ()
|
||||
if (result != RESULT_OK) {
|
||||
cout << "open failed: " << getResultCode(result) << endl;
|
||||
} else {
|
||||
if (device->isValid() == false)
|
||||
if (!device->isValid())
|
||||
cout << "device not available." << endl;
|
||||
|
||||
int count = 0;
|
||||
@@ -52,7 +52,7 @@ int main ()
|
||||
|
||||
device->close();
|
||||
|
||||
if(device->isValid() == false)
|
||||
if (!device->isValid())
|
||||
cout << "close successful." << endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user