Permalink
Browse files

Fixed create_read_block to actually be blocking.

  • Loading branch information...
1 parent 48c4d9c commit e7ae04e4037e2c373760631bfbbdd7686e2ec3dc @bmcdorman bmcdorman committed Mar 2, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/create_c.cpp
View
@@ -21,6 +21,8 @@
#include "kovan/create.h"
#include "kovan/create.hpp"
+#include <climits>
+
int create_connect()
{
while(!create_connect_once());
@@ -364,7 +366,7 @@ void create_play_song(int num)
int create_read_block(char *data, int count)
{
- return Create::instance()->read(reinterpret_cast<unsigned char *>(data), count);
+ return Create::instance()->blockingRead(reinterpret_cast<unsigned char *>(data), count, UINT_MAX);
}
void create_write_byte(char byte)

0 comments on commit e7ae04e

Please sign in to comment.