surface-tools/surface-tools-20180914git-python3.patch

17 lines
504 B
Diff

--- surface-tools-20180914git/autorotate/autorotate.orig 2020-12-21 17:06:09.847647891 +0000
+++ surface-tools-20180914git/autorotate/autorotate 2020-12-21 17:06:37.699162556 +0000
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
#####CONFIGURATION#####
#sensorname="accel_3d"
@@ -55,7 +55,6 @@
val = val * scale / 9.8
else:
# Microsoft Surface (unsupported)
- print 1 << 16
if val & (1 << (16-1)) != 0:
val = val - (1 << 16)
return val