- Devices such as T-Echo, RAK4631, and RAK11300 are flashed via filesystem.
+ Devices such as T-Echo, RAK4631, and RAK11300 are flashed via
+ filesystem.
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 5f7159d1..b25c19d5 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -1,5 +1,3 @@
-import React from "react";
-
import Head from "@docusaurus/Head";
import Link from "@docusaurus/Link";
import useBaseUrl from "@docusaurus/useBaseUrl";
diff --git a/src/pages/tools/OEM.tsx b/src/pages/tools/OEM.tsx
index 3f1d94f1..71298c42 100644
--- a/src/pages/tools/OEM.tsx
+++ b/src/pages/tools/OEM.tsx
@@ -1,4 +1,4 @@
-import React, { useEffect, useState } from "react";
+import { useEffect, useState } from "react";
import { fromByteArray, toByteArray } from "base64-js";
diff --git a/src/theme/NotFound/Content/index.js b/src/theme/NotFound/Content/index.js
index e7a612f7..114b279f 100644
--- a/src/theme/NotFound/Content/index.js
+++ b/src/theme/NotFound/Content/index.js
@@ -1,35 +1,37 @@
-import React from 'react';
-import clsx from 'clsx';
-import Translate from '@docusaurus/Translate';
-import Heading from '@theme/Heading';
-export default function NotFoundContent({className}) {
+import Translate from "@docusaurus/Translate";
+import Heading from "@theme/Heading";
+import clsx from "clsx";
+export default function NotFoundContent({ className }) {
return (
-
+
+ description="The title of the 404 page"
+ >
Page Not Found
+ description="The first paragraph of the 404 page"
+ >
We could not find what you were looking for.
+ description="The 2nd paragraph of the 404 page"
+ >
Please contact the owner of the site that linked you to the
original URL and let them know their link is broken.
-
+
diff --git a/src/theme/NotFound/index.js b/src/theme/NotFound/index.js
index 3b551f9e..f35bcc75 100644
--- a/src/theme/NotFound/index.js
+++ b/src/theme/NotFound/index.js
@@ -1,12 +1,11 @@
-import React from 'react';
-import {translate} from '@docusaurus/Translate';
-import {PageMetadata} from '@docusaurus/theme-common';
-import Layout from '@theme/Layout';
-import NotFoundContent from '@theme/NotFound/Content';
+import { translate } from "@docusaurus/Translate";
+import { PageMetadata } from "@docusaurus/theme-common";
+import Layout from "@theme/Layout";
+import NotFoundContent from "@theme/NotFound/Content";
export default function Index() {
const title = translate({
- id: 'theme.NotFound.title',
- message: 'Page Not Found',
+ id: "theme.NotFound.title",
+ message: "Page Not Found",
});
return (
<>
diff --git a/src/utils/calculateADC.ts b/src/utils/calculateADC.ts
index 5d534405..e1ee7e96 100644
--- a/src/utils/calculateADC.ts
+++ b/src/utils/calculateADC.ts
@@ -1,23 +1,23 @@
export default function calculateADC() {
- //const variables
- const BAT_MILLIVOLTS_FULL = 4.2;
- const BAT_MILLIVOLTS_EMPTY = 3.27;
- const BAT_FULL_PERCENT = 1;
- //variable
- const batteryChargePercent =
- parseFloat(
- (document.getElementById("batteryChargePercent")).value,
- ) / 100;
- const operativeAdcMultiplier = parseFloat(
- (document.getElementById("operativeAdcMultiplier")).value,
- );
- const result =
- (operativeAdcMultiplier *
- ((BAT_FULL_PERCENT - 1) * BAT_MILLIVOLTS_EMPTY -
- BAT_FULL_PERCENT * BAT_MILLIVOLTS_FULL)) /
- ((batteryChargePercent - 1) * BAT_MILLIVOLTS_EMPTY -
- batteryChargePercent * BAT_MILLIVOLTS_FULL);
- ((
- document.getElementById("newOperativeAdcMultiplier")
- )).value = result.toFixed(4);
+ //const variables
+ const batMillivoltsFull = 4.2;
+ const batMillivoltsEmpty = 3.27;
+ const batFullPercent = 1;
+ //variable
+ const batteryChargePercent =
+ parseFloat(
+ (document.getElementById("batteryChargePercent")).value,
+ ) / 100;
+ const operativeAdcMultiplier = parseFloat(
+ (document.getElementById("operativeAdcMultiplier")).value,
+ );
+ const result =
+ (operativeAdcMultiplier *
+ ((batFullPercent - 1) * batMillivoltsEmpty -
+ batFullPercent * batMillivoltsFull)) /
+ ((batteryChargePercent - 1) * batMillivoltsEmpty -
+ batteryChargePercent * batMillivoltsFull);
+ ((
+ document.getElementById("newOperativeAdcMultiplier")
+ )).value = result.toFixed(4);
}