Tools for working with Cidco Mailstations
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

tribble: add recvbyte

+12 -2
+1 -2
util/recvdump.c
··· 74 74 fflush(stdout); 75 75 76 76 while (received < expected) { 77 - b = recvtribble() + (recvtribble() << 3) + 78 - ((recvtribble() & dibmask) << 6); 77 + b = recvbyte(); 79 78 80 79 fputc(b, pFile); 81 80
+8
util/tribble.c
··· 1 + #include <stdio.h> 1 2 #include <sys/types.h> 2 3 #include <machine/pio.h> 3 4 ··· 26 27 ; 27 28 28 29 return b; 30 + } 31 + 32 + unsigned char 33 + recvbyte(void) 34 + { 35 + return recvtribble() + (recvtribble() << 3) + 36 + ((recvtribble() & dibmask) << 6); 29 37 } 30 38 31 39 void
+3
util/tribble.h
··· 12 12 #define dibmask 0x03 13 13 14 14 unsigned char recvtribble(void); 15 + unsigned char recvbyte(void); 15 16 void sendtribble(unsigned char b); 16 17 void sendbyte(unsigned char b); 18 + 19 + extern int tribble_debug;