where rangeCm() is typed as rangecm(). This causes the following exception:
TypeError: Object #<IrRangeSensor> has no method 'rangecm'
at IrRangeSensor.range (E:\Experiments\CylonJS\Arduino\arduino-uno-test1\node_modules\cylon-gpio\lib\ir-range-sensor.js:66:15)
at Device.base.(anonymous function) [as range] (E:\Experiments\CylonJS\Arduino\arduino-uno-test1\node_modules\cylon\lib\utils.js:124:31)
at null.<anonymous> (E:\Experiments\CylonJS\Arduino\arduino-uno-test1\ir_sensor.js:15:35)
at wrapper [as _onTimeout] (timers.js:258:14)
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
The range() function in the infrared proximity sensor driver has a typo that causes a run time exception:
where rangeCm() is typed as rangecm(). This causes the following exception:
Similar mistake can be seen here as well: