Fix the OSTC4 firmware upgrade
In commit 1c8cd096b57a876c4fb0afc5113aac05d75d924e the block size was changed from 64 to 1024 bytes. For bluetooth classic communication, this shouldn't matter, but for some reason it does cause the OSTC4 firmware upgrade to fail. Maybe some buffering problem in the OSTC4 firmware or bluetooth stack? Change the block size back to 64 bytes.
This commit is contained in:
parent
baa6944697
commit
bb987642e3
@ -240,7 +240,7 @@ hw_ostc3_write (hw_ostc3_device_t *device, dc_event_progress_t *progress, const
|
|||||||
size_t nbytes = 0;
|
size_t nbytes = 0;
|
||||||
while (nbytes < size) {
|
while (nbytes < size) {
|
||||||
// Set the maximum packet size.
|
// Set the maximum packet size.
|
||||||
size_t length = 1024;
|
size_t length = (device->hardware == OSTC4) ? 64 : 1024;
|
||||||
|
|
||||||
// Limit the packet size to the total size.
|
// Limit the packet size to the total size.
|
||||||
if (nbytes + length > size)
|
if (nbytes + length > size)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user