Comparing version 1.0.3 to 1.1.0
@@ -61,4 +61,4 @@ var fs = require('fs'), | ||
}; | ||
spi.close = function () { | ||
fs.close(_fd); | ||
spi.close = function (cb) { | ||
fs.close(_fd, cb); | ||
}; | ||
@@ -65,0 +65,0 @@ |
{ | ||
"name": "pi-spi", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Simple async SPI library for Raspberry Pi", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -68,3 +68,7 @@ # pi-spi | ||
### spi.close(cb) | ||
Frees up the underlying device descriptor if you are no longer using this instance. You will need to `SPI.initialize` a new instance if you wish to resume communication later. | ||
## License | ||
@@ -71,0 +75,0 @@ |
13307
101