Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bugfix: must initialize all added strips.

  • Loading branch information...
commit c8cd1129a7b870cd093a90dc21b504851335fd27 1 parent 4bdf1d7
@cibomahto cibomahto authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  c++_host/host.cpp
View
3  c++_host/host.cpp
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.