Skip to content

Commit 467e629

Browse files
committed
Sensor: replace pow10() with pow(10, )
gcc has dropped support for pow10
1 parent 05c6fe2 commit 467e629

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/devices/Sensor.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ namespace Ev3devKit.Devices {
159159
*/
160160
public double get_float_value (int index) throws Error {
161161
var value = (double)get_value (index);
162-
double decimal_factor = Math.pow10 ((double)decimals);
162+
double decimal_factor = Math.pow (10, (double)decimals);
163163
return value / decimal_factor;
164164
}
165165

0 commit comments

Comments
 (0)