So I can dump packets on the wire I pulled out buffer to be accessed versus
inline creation
On May 17, 2014 12:39 PM, "Rick Waldron" <notifications@github.com> wrote:

> In lib/spark.js:
>
> > @@ -269,8 +269,9 @@ Spark.prototype.pinMode = function(pin, mode) {
> >    pinInt = (pin.replace(/A|D/, "") | 0) + offset;
> >
> >    this.pins[pinInt].mode = mode;
> > -
> > -  state.socket.write(new Buffer([ 0x00, pinInt, sMode ]));
> > +  var buffer = new Buffer([ 0x00, pinInt, sMode ]);
> > +  // console.log(buffer);
> > +  state.socket.write(buffer);
>
> This doesn't do anything different
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rwaldron/spark-io/pull/13/files#r12769450>
> .
>