sadr0b0t / snippets

Разные куски кода
1 stars 4 forks source link

Should replySize be based on reply_buffer rather than write_buffer? #1

Closed JacobChrist closed 10 years ago

JacobChrist commented 10 years ago

From snippets/chipkit-android-usb/chipkit_usbhost/chipkit_usbhost.pde

Change this: // Подготовить ответ strcpy(reply_buffer, REPLY_OK); replySize = strlen(write_buffer) + 1; To This? // Подготовить ответ strcpy(reply_buffer, REPLY_OK); replySize = strlen(reply_buffer) + 1;

sadr0b0t commented 10 years ago

Fixed that, thanks. This will not affect functionality in the example though, because write_buffer global variable was the only buffer passed to handleInput as reply_buffer param.

JacobChrist commented 10 years ago

We are not sure if there was actually an error... We are just having problems.

On Fri, Apr 18, 2014 at 12:08 PM, 1i7 notifications@github.com wrote:

Fixed that, thanks. This will not affect functionality in the example though, because write_buffer global variable was the only buffer passed to handleInput as reply_buffer param.

— Reply to this email directly or view it on GitHubhttps://github.com/1i7/snippets/issues/1#issuecomment-40835558 .

Jacob Christ ProLinear/PONTECH, Inc. 1-877-985-9286 Phone 1-413-235-1651 Fax http://www.pontech.com