From 4d5c8f5352be3bbe76014b4c0811a3a355372e83 Mon Sep 17 00:00:00 2001 From: Kristin Galvin Date: Sun, 19 Jan 2020 18:34:37 -0800 Subject: [PATCH] audio test --- apps.json | 2 +- apps/stetho/stetho.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps.json b/apps.json index 1dc8a4a7e..b849820e7 100644 --- a/apps.json +++ b/apps.json @@ -267,7 +267,7 @@ { "id": "stetho", "name": "Stethoscope", "icon": "stetho.png", - "version":"0.018", + "version":"0.019", "description": "Hear your heart rate", "tags": "health", "storage": [ diff --git a/apps/stetho/stetho.js b/apps/stetho/stetho.js index 580b3eab3..0059fd43e 100644 --- a/apps/stetho/stetho.js +++ b/apps/stetho/stetho.js @@ -25,7 +25,8 @@ function readHRM() { g.clearRect(0,100,239,239); g.moveTo(-100,0); } - freq(parseFloat(y+1.0)*1000); + let frequency = parseFloat(y+1.0) * 10000; + if(frequency > 0) freq(frequency); g.setColor(1,1,1); g.lineTo(x,y);