Skip to content

Commit

Permalink
fix commit mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
hideakitai committed Aug 15, 2018
1 parent a8af31a commit eb28b05
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/loopback_serial/max/osc-serial.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,16 @@ function anything(a)
arr = new Int32Array(buffer);
arr[0] = args[i];
}
else
{
arr = new Int32Array(buffer);
var arr_ref = new Float32Array(buffer);
arr_ref[0] = args[i];
}
outs.push((arr[0] & 0xFF000000) >> 24);
outs.push((arr[0] & 0x00FF0000) >> 16);
outs.push((arr[0] & 0x0000FF00) >> 8);
outs.push((arr[0] & 0x000000FF) >> 0);
outs.push((arr[0] & 0xFF000000) >>> 24);
outs.push((arr[0] & 0x00FF0000) >>> 16);
outs.push((arr[0] & 0x0000FF00) >>> 8);
outs.push((arr[0] & 0x000000FF) >>> 0);
}
}

Expand Down

0 comments on commit eb28b05

Please sign in to comment.