Fix issue of sending each byte of iAP as a word. Write each thing that comes in as an 8 bit value. Need new in line asm to do this.

This commit is contained in:
Russell Gallop
2011-08-17 14:57:41 +01:00
parent 2cd2348309
commit 4d355517c6
2 changed files with 3 additions and 2 deletions

View File

@@ -1257,8 +1257,8 @@ void decouple(chanend c_mix_out,
/* There is room in the collecting buffer for the data */
xc_ptr p = (iap_to_host_buffer_being_collected + 4) + iap_data_collected_from_device;
// Add data to the buffer
write_via_xc_ptr(p, datum_iap);
iap_data_collected_from_device += 4;
write_byte_via_xc_ptr_indexed(p, 0, datum_iap);
iap_data_collected_from_device += 1;
}
else
{