Skip to content

Commit

Permalink
I2C: Fixes to fixes in tests. Yep.
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information
rwaldron committed Apr 26, 2016
1 parent dba09ad commit 782282c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions node/test/unit/tessel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,7 @@ exports['Tessel.I2C'] = {
// Tessel.I2C.prototype.read
// this._port._simple_cmd([CMD.START, this.addr << 1 | 1]);
//
test.deepEqual(device._port._simple_cmd.firstCall.args[0], [CMD.START, 0x01 << 1 | 1]);
test.deepEqual(device._port._simple_cmd.firstCall.args[0], [CMD.START, device.addr << 1 | 1]);
test.deepEqual(device._port._simple_cmd.lastCall.args[0], [CMD.STOP]);

test.done();
Expand Down Expand Up @@ -1729,7 +1729,7 @@ exports['Tessel.I2C'] = {
// Tessel.I2C.prototype.send
// this._port._simple_cmd([CMD.START, this.addr << 1]);
//
test.deepEqual(device._port._simple_cmd.firstCall.args[0], [CMD.START, 0x01 << 1]);
test.deepEqual(device._port._simple_cmd.firstCall.args[0], [CMD.START, device.addr << 1]);
test.deepEqual(device._port._simple_cmd.lastCall.args[0], [CMD.STOP]);

test.done();
Expand Down Expand Up @@ -1765,8 +1765,8 @@ exports['Tessel.I2C'] = {
// Tessel.I2C.prototype.transfer
// this._port._simple_cmd([CMD.START, this.addr << 1]);
// this._port._simple_cmd([CMD.START, this.addr << 1 | 1]);
test.deepEqual(device._port._simple_cmd.firstCall.args[0], [CMD.START, 0x01 << 1]);
test.deepEqual(device._port._simple_cmd.secondCall.args[0], [CMD.START, 0x01 << 1 | 1]);
test.deepEqual(device._port._simple_cmd.firstCall.args[0], [CMD.START, device.addr << 1]);
test.deepEqual(device._port._simple_cmd.secondCall.args[0], [CMD.START, device.addr << 1 | 1]);
test.deepEqual(device._port._simple_cmd.lastCall.args[0], [CMD.STOP]);

test.done();
Expand Down

1 comment on commit 782282c

@wyze
Copy link
Member

@wyze wyze commented on 782282c Apr 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message checks out. 👍

Please sign in to comment.