Expanded test program and small change
Status: Pre-Alpha
Brought to you by:
xtravar
I haven't had as much time lately to hack on this,
unfortunately. But I will attach the little test
program which is running successfully against my V188.
Thanks!
Next steps are some read-only FSAC operations, and then
some baby steps with writing.
There was one small change necessary to the library to
allow the entire returned data buffer to be read:
diff -u 20051009/p2k.c ./p2k.c
--- 20051009/p2k.c Sun Oct 9 22:21:45 2005
+++ ./p2k.c Sun Oct 9 22:24:23 2005
@@ -80,7 +80,7 @@
/* reads */
int p2k_packet_get_buff(p2k_packet *packet, int *pos,
uint8_t *buff, int len) {
int ret = *pos+len;
- if(ret >= packet->data_size) {
+ if(ret > packet->data_size) {
return 0;
}
Test program