Skip to content

Commit b138e2e

Browse files
committed
Updated to 0.2.2
1 parent 32cbc99 commit b138e2e

File tree

5 files changed

+1544
-8
lines changed

5 files changed

+1544
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
serial-obd 0.2.1
1+
serial-obd 0.2.2
22
===============
33

44
This version will only receive updates that were done in bluetooth-obd. On request I will update/sync this module with bluetooth-obd as this version is less-used.
@@ -27,7 +27,7 @@ This node module lets you communicate over a serial port with OBD-II ELM327 Conn
2727
```javascript
2828
var OBDReader = require('serial-obd');
2929
var options = {};
30-
options.baudrate = 115200;
30+
options.baudRate = 115200;
3131
var serialOBDReader = new OBDReader("/dev/rfcomm0", options);
3232
var dataReceivedMarker = {};
3333

example/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
var OBDReader = require('../lib/obd.js');
2222
var options = {};
23-
options.baudrate = 115200;
23+
options.baudRate = 115200;
2424
var serialOBDReader = new OBDReader("COM4", options);
2525
var dataReceivedMarker = {};
2626

lib/obd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function parseOBDCommand(hexString) {
150150
OBDReader.prototype.connect = function () {
151151
var self = this; //Enclosure
152152

153-
var SerialPort = require('serialport').SerialPort;
153+
var SerialPort = require('serialport');
154154

155155
this.serial = new SerialPort(this.SERIAL_PORT, this.OPTIONS);
156156

0 commit comments

Comments
 (0)