mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Show the measured heart rate as a Toast, for now #178
This commit is contained in:
@@ -731,7 +731,8 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
|
||||
public void logHeartrate(byte[] value) {
|
||||
LOG.info("Got heartrate:");
|
||||
if (value.length == 2 && value[0] == 6) {
|
||||
LOG.info("Heartrate: " + (value[1] & 0xff));
|
||||
int hrValue = (value[1] & 0xff);
|
||||
GB.toast(getContext(), "Heart Rate measured: " + hrValue, Toast.LENGTH_LONG, GB.INFO);
|
||||
} else {
|
||||
logMessageContent(value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user