You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The isDriverLoaded() function is no longer working properly. It returns false even if the driver is loaded properly.
Howto reproduce:
var sensor = require('ds18x20');
if (sensor.isDriverLoaded()){
console.log("Sensor Driver is not loaded! To load the driver, run: sudo modprobe w1-gpio && sudo modprobe w1-therm");
process.exit(1);
}
sensor.list(function (err, listOfDeviceIds) {
console.log(listOfDeviceIds);
});
var tempObj = sensor.getAll();
console.log(tempObj);
Load the driver and run it. It will still exit. Then try again, but comment or remove the process.exit() line.
isDriverLoaded will still return false, but i will get my devices and temps even so.
Thanks for your report. As I don't have a rPi v2 and I haven't worked with the ds18x20 for a long time I cannot reproduce this bug. Should you find a way to solve this in my module, please submit a pull request.
The isDriverLoaded() function is no longer working properly. It returns false even if the driver is loaded properly.
Howto reproduce:
Load the driver and run it. It will still exit. Then try again, but comment or remove the process.exit() line.
isDriverLoaded will still return false, but i will get my devices and temps even so.
All this is only the case with the new version with kernel upgrade (raspberry pi 2). I used the help on this page: https://groups.google.com/forum/#!topic/webiopi/_C7KNiS-aPE to get wire1 working again.
The text was updated successfully, but these errors were encountered: