Skip to content

Commit

Permalink
WIP: iot2050-event-record: Switch to use DBus interface to get tamper…
Browse files Browse the repository at this point in the history
… sensor value

Signed-off-by: Baocheng Su <[email protected]>
  • Loading branch information
BaochengSu committed Jan 22, 2025
1 parent 320b453 commit 085a483
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def record_sensor_events():
break

lux_critical_value = int(os.getenv('LUX_CRITICAL_VALUE', '100'))
pxmt_sensor = ProximitySensorSysfs(critical_value=lux_critical_value)
pxmt_sensor = ProximitySensorDBus(critical_value=lux_critical_value)
with open(accel_x_raw, 'r') as x, \
open(accel_y_raw, 'r') as y, \
open(accel_z_raw, 'r') as z, \
Expand Down

0 comments on commit 085a483

Please sign in to comment.