Skip to content

Commit

Permalink
Merge pull request #7 from dustcloud/develop
Browse files Browse the repository at this point in the history
- change to display analog/digital input channel in OAP sample notifi…
  • Loading branch information
mvispute authored Jun 28, 2018
2 parents 979b23e + 29a9953 commit a616e36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/SmartMeshSDK/protocols/oap/OAPNotif.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def parse_oap_notif(data, index = 0):
raise SystemError("unknown OAP sample with channel={0}").format(channel)

#===== populate result structure


if channel[0]==ANALOG_ADDRESS or channel[0]==DIGITAL_IN_ADDRESS:
result.input = channel[1]
result.packet_timestamp = (secs, usecs)
result.rate = rate
result.num_samples = num_samples
Expand Down

0 comments on commit a616e36

Please sign in to comment.