Fixed debug output of Linux swdptap_bit_in()

This commit is contained in:
Gareth McMullin 2011-02-07 11:32:30 +13:00
parent fd2a204623
commit a6f84018f6
1 changed files with 3 additions and 3 deletions

View File

@ -98,12 +98,12 @@ uint8_t swdptap_bit_in(void)
//ftdi_read_data(&ftdic, &ret, 1);
ftdi_read_pins(&ftdic, &ret);
//ret &= 0x08;
ret &= 0x08;
ftdi_write_data(&ftdic, "\xA1\xA0", 2);
DEBUG("%x\n", ret);
DEBUG("%d", ret?1:0);
return ret & 0x08;
return ret;
}
void swdptap_bit_out(uint8_t val)