Skip to content

Commit

Permalink
Merge pull request #7 from resin-io-modules/silly-logical-issue
Browse files Browse the repository at this point in the history
Fix silly logical issue on `.hasDriver()`
  • Loading branch information
jviotti committed Nov 30, 2017
2 parents a45044c + 342a776 commit 90cb4d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ NAN_METHOD(hasDriver) {
<< std::endl;
wdi_set_log_level(WDI_LOG_LEVEL_WARNING);

bool found = false;
bool found = true;
int code = WDI_SUCCESS;
struct wdi_device_info *device_list_node;

Expand All @@ -81,7 +81,7 @@ NAN_METHOD(hasDriver) {
<< ":0x" << device_list_node->pid
<< std::endl;
if (device_list_node->vid == vendor && device_list_node->pid == product) {
found = true;
found = false;
break;
}
}
Expand Down

0 comments on commit 90cb4d0

Please sign in to comment.