Skip to content

Commit a616e36

Browse files
authored
Merge pull request #7 from dustcloud/develop
- change to display analog/digital input channel in OAP sample notifi…
2 parents 979b23e + 29a9953 commit a616e36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/SmartMeshSDK/protocols/oap/OAPNotif.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ def parse_oap_notif(data, index = 0):
7272
raise SystemError("unknown OAP sample with channel={0}").format(channel)
7373

7474
#===== populate result structure
75-
75+
76+
if channel[0]==ANALOG_ADDRESS or channel[0]==DIGITAL_IN_ADDRESS:
77+
result.input = channel[1]
7678
result.packet_timestamp = (secs, usecs)
7779
result.rate = rate
7880
result.num_samples = num_samples

0 commit comments

Comments
 (0)