Failed invoking <symbol>Too Many Arguments Error
in initialize (D:\Owncloud\workspace\CGMforEDGE\source\CGMforEDGEView.mc:174)The code is:
172 function initialize () {
173 View.initialize();
174 Sensor.setEnabledSensors( [Sensor.SENSOR_HEARTRATE], [Sensor.SENSOR_BIKECADENCE] , [Sensor.SENSOR_BIKEPOWER] , [Sensor.SENSOR_BIKESPEED] );
175 Sensor.enableSensorEvents( method(:onSensor) );
176 }If I reduce the arguments it works fine: Sensor.setEnabledSensors( [Sensor.SENSOR_HEARTRATE] );
If I write several lines I don't get heartrate readings:
Sensor.setEnabledSensors( [Sensor.SENSOR_HEARTRATE] );
Sensor.setEnabledSensors( [Sensor.SENSOR_BIKECADENCE] );
and so on.
Is this a bug or my mistake?
Thanks for your assistance!
Andreas