cleared buffer with a5 instead of 0.

pull/28/head
alanbjohnston 6 years ago committed by GitHub
parent 199a623fdc
commit e1644a7fcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -273,8 +273,6 @@ int main(int argc, char *argv[]) {
wiringPiSetup ();
pinMode (0, OUTPUT);
digitalWrite (0, HIGH);
memset(buffer, 0, sizeof(buffer));
//setSpiChannel(SPI_CHANNEL);
//setSpiSpeed(SPI_SPEED);
@ -556,6 +554,8 @@ int get_tlm_fox() {
// short int h[HEADER_LEN];
short int h[headerLen];
memset(h, 0, sizeof(h));
memset(buffer, a5, sizeof(buffer));
// short int b10[DATA_LEN], h10[HEADER_LEN];
// short int rs_frame[RS_FRAMES][223];

Loading…
Cancel
Save

Powered by TurnKey Linux.