()
| 38 | |
| 39 | @FreshFish(2) |
| 40 | def getHR(): |
| 41 | if BBB and ser: |
| 42 | ser.write('G1' + chr(13)) |
| 43 | res = readline() |
| 44 | if len(res) > 5: |
| 45 | out = int(res.split()[2]) |
| 46 | else: |
| 47 | out = 0 |
| 48 | else: |
| 49 | ### return a dummy result |
| 50 | out = int(50 * math.sin(time.time() / 20) + 50) |
| 51 | return out |
| 52 | |
| 53 | # ... in GUI |
| 54 |
no test coverage detected