From 6bb8b9e5a07c58692eda55617a6796b4851564eb Mon Sep 17 00:00:00 2001 From: Kristin Galvin Date: Sun, 19 Jan 2020 18:05:55 -0800 Subject: [PATCH] audio test --- apps.json | 2 +- apps/stetho/stetho.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps.json b/apps.json index 2e59aae95..e965669a1 100644 --- a/apps.json +++ b/apps.json @@ -267,7 +267,7 @@ { "id": "stetho", "name": "Stethoscope", "icon": "stetho.png", - "version":"0.015", + "version":"0.016", "description": "Hear your heart rate", "tags": "health", "storage": [ diff --git a/apps/stetho/stetho.js b/apps/stetho/stetho.js index a4caa8e71..a57a94b8b 100644 --- a/apps/stetho/stetho.js +++ b/apps/stetho/stetho.js @@ -29,8 +29,8 @@ function readHRM() { g.setColor(1,1,1); g.lineTo(x,y); freq((parseFloat(y) * 1000.0) + 500.0); - console.log("frequency " + (parseFloat(y) * 1000.0) + 500.0); - ; + console.log("frequency " + ((parseFloat(y) * 1000.0) + 500.0)); + if ((max-min)>0.005) { if (4*a > (min+3*max)) { // high g.setColor(1,0,0); @@ -79,4 +79,4 @@ function readHRM() { if (x>239)x=0; } -setInterval(readHRM,100); +setInterval(readHRM,50);