create_read_block issue?

1 reply [Last post]
Marty Rand
Marty Rand's picture
Title: Botball Youth Advisory Council
Joined: 07/04/2009
Posts:
BotPoints: 253
User offline. Last seen 8 years 6 weeks ago.

Is there an issue with create_read_block()? It always returns -1 (which I gather means there is an error).

Example code:

  1. char buffer[1];
  2. char *bptr = buffer;
  3.  
  4. int main()
  5. {
  6. create_connect();//connect to the create
  7.  
  8. printf("block = %d", create_read_block(buffer, 1));
  9. }

-Marty Rand
{
Senior programmer at Norman Advanced Robotics

Former senior programmer at Whittier Middle School

Youth Advisory Council

All around nerd
}

Beta
Beta's picture
Title: The Magnificent
Joined: 02/24/2012
Posts:
BotPoints: 266
User offline. Last seen 8 years 32 weeks ago.

I believe the issue has been corrected as of 1.9.2. Let me know if it works for you once 1.9.2 becomes available.

Braden McDorman

Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.

Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.