From 4bf75a2473be78e4594b2dab5e51a8b79e398424 Mon Sep 17 00:00:00 2001 From: Pritimay Sarkar Date: Fri, 4 Aug 2023 23:57:32 +0530 Subject: [PATCH] add sample flow --- firmware/sketch_aug4a/sketch_aug4a.ino | 12 +++++++++++- src/components/Calibrations.css | 9 +++++++++ src/components/Calibrations.js | 6 +++--- src/components/Devices.js | 10 +++++++++- 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/firmware/sketch_aug4a/sketch_aug4a.ino b/firmware/sketch_aug4a/sketch_aug4a.ino index cdeea6c..a9b5113 100644 --- a/firmware/sketch_aug4a/sketch_aug4a.ino +++ b/firmware/sketch_aug4a/sketch_aug4a.ino @@ -5,6 +5,16 @@ void setup() { void loop() { // put your main code here, to run repeatedly: - Serial.println("RESULT SN 18291 1937.23 2828.11 28211.20 121829.12"); + Serial.println("#Start Buffer"); + delay(2000); + Serial.println("#Buffer Completed"); + delay(2000); + Serial.println("#Start Buffer"); + delay(2000); + Serial.println("#Sample Completed"); delay(3000); + Serial.println("RESULT SN 18291 1937.23 2828.11 28211.20 121829.12"); + delay(15000); + + // Serial.println("#ERROR"); } diff --git a/src/components/Calibrations.css b/src/components/Calibrations.css index e69de29..0e30571 100644 --- a/src/components/Calibrations.css +++ b/src/components/Calibrations.css @@ -0,0 +1,9 @@ +.page-title { + /* width: 100vw; */ + padding: 10px; + text-align: center; + background: rgb(207, 235, 250); + color: black; + font-size: 30px; + font-family: sans-serif; +} \ No newline at end of file diff --git a/src/components/Calibrations.js b/src/components/Calibrations.js index 12cbc9b..1d4300c 100644 --- a/src/components/Calibrations.js +++ b/src/components/Calibrations.js @@ -44,8 +44,8 @@ const Calibrations = () => { }, [device, curDeviceData]); return ( -
-
Calibrations
+
+
Calibrations
x.deviceId)} onChange={changeDevice} value={device} placeholder="Select an device" /> @@ -66,7 +66,7 @@ const Calibrations = () => { calibratedAt {curDeviceData?.calibratedAt} - coefficients {curDeviceData?.coefficients.toString()} + coefficients {curDeviceData?.coefficients?.toString()}
} diff --git a/src/components/Devices.js b/src/components/Devices.js index 4fd6144..c9ff806 100644 --- a/src/components/Devices.js +++ b/src/components/Devices.js @@ -128,7 +128,7 @@ const Devices = () => {
{!curTestData &&
Select test device, date and person to get the detailed graph. Then, click show button to render graph.
} - {curTestData?.csvPath && } + {curTestData?.csvPath && curTestData?.testType !== 'HEMOCUBE' && } {curTestData &&
@@ -151,6 +151,14 @@ const Devices = () => { + {curTestData?.testType === 'HEMOCUBE' && + + + } + {curTestData?.testType === 'HEMOCUBE' && + + + }
result {curTestData?.result}
device data{curTestData?.calculatedRatio}
device data{curTestData?.deviceRatio}
{/* */}
}