Permalink
Browse files

bugfix: must initialize all added strips.

  • Loading branch information...
cibomahto committed May 25, 2012
1 parent 4bdf1d7 commit c8cd1129a7b870cd093a90dc21b504851335fd27
Showing with 2 additions and 1 deletion.
  1. +2 −1 c++_host/host.cpp
View
@@ -1,6 +1,7 @@
#include <iostream>
#include <string>
#include <vector>
+#include <pthread.h>
#include "LedStrip.h"
#include "SocketListener.h"
@@ -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");

0 comments on commit c8cd112

Please sign in to comment.