Skip to content

Commit

Permalink
fix: Remove unused return values (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
nandenjin authored Mar 2, 2024
1 parent 36ecbff commit 897dc7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ofxEtherdream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void ofxEtherdream::init() {
int device_num = etherdream_dac_count();
if (!device_num || idEtherdreamConnection>device_num) {
ofLogWarning() << "ofxEtherdream::init - No DACs found";
return 0;
return;
}

for (int i=0; i<device_num; i++) {
Expand All @@ -54,7 +54,7 @@ void ofxEtherdream::init() {
device = etherdream_get(idEtherdreamConnection);

ofLogNotice() << "ofxEtherdream::init - Connecting...";
if (etherdream_connect(device) < 0) return 1;
if (etherdream_connect(device) < 0) return;

ofLogNotice() << "ofxEtherdream::init - done";

Expand Down

0 comments on commit 897dc7a

Please sign in to comment.