Skip to content

Commit

Permalink
Fixed create_read_block to actually be blocking.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcdorman committed Mar 2, 2013
1 parent 48c4d9c commit e7ae04e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/create_c.cpp
Expand Up @@ -21,6 +21,8 @@
#include "kovan/create.h"
#include "kovan/create.hpp"

#include <climits>

int create_connect()
{
while(!create_connect_once());
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e7ae04e

Please sign in to comment.