Skip to content

Commit

Permalink
bugfix: must initialize all added strips.
Browse files Browse the repository at this point in the history
  • Loading branch information
cibomahto committed May 25, 2012
1 parent 4bdf1d7 commit c8cd112
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c++_host/host.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <iostream>
#include <string>
#include <vector>
#include <pthread.h>

#include "LedStrip.h"
#include "SocketListener.h"
Expand All @@ -14,7 +15,7 @@ int main( int argc, const char* argv[] ) {
std::vector<LedStrip> strips;

strips.push_back(LedStrip(display_width,display_height,0));
strips.push_back(LedStrip(display_width,display_height,0));
// strips.push_back(LedStrip(display_width,display_height,0));
// strips.push_back(LedStrip(display_width,display_height,0));
// strips[0].Connect("/dev/ttyACM0");
// strips[1].Connect("/dev/ttyACM1");
Expand Down

0 comments on commit c8cd112

Please sign in to comment.