SmithLabNeuro / Ex

Experimental Software
8 stars 1 forks source link

[Bug] sendCode errors when trying to send multiple bytes #5

Closed smithlabrig closed 1 year ago

smithlabrig commented 1 year ago

Describe the bug You can't send multiple codes with one sendCode call (this could be done before). Seems the bug was introduced in https://github.com/SmithLabNeuro/Ex/commit/eb2739e1d5d28ab1000a300287256955d603b6ad. This assert statement tries to call a && which only is valid for scalars. Line 11 of sendcode.m should be changed to

assert(all(code>=0 & code <=2^16),...)