Use rome and initial format
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { PowerValidation } from "@app/validation/config/power.js";
|
||||
import { DynamicForm } from "@components/Form/DynamicForm.js";
|
||||
import { useDevice } from "@core/stores/deviceStore.js";
|
||||
import { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
import { DynamicForm } from "@components/Form/DynamicForm.js";
|
||||
|
||||
export const Power = (): JSX.Element => {
|
||||
const { config, setWorkingConfig } = useDevice();
|
||||
@@ -11,9 +11,9 @@ export const Power = (): JSX.Element => {
|
||||
new Protobuf.Config({
|
||||
payloadVariant: {
|
||||
case: "power",
|
||||
value: data
|
||||
}
|
||||
})
|
||||
value: data,
|
||||
},
|
||||
}),
|
||||
);
|
||||
};
|
||||
|
||||
@@ -31,7 +31,7 @@ export const Power = (): JSX.Element => {
|
||||
name: "isPowerSaving",
|
||||
label: "Enable power saving mode",
|
||||
description:
|
||||
"Select if powered from a low-current source (i.e. solar), to minimize power consumption as much as possible."
|
||||
"Select if powered from a low-current source (i.e. solar), to minimize power consumption as much as possible.",
|
||||
},
|
||||
{
|
||||
type: "number",
|
||||
@@ -40,14 +40,14 @@ export const Power = (): JSX.Element => {
|
||||
description:
|
||||
"Automatically shutdown node after this long when on battery, 0 for indefinite",
|
||||
properties: {
|
||||
suffix: "Seconds"
|
||||
}
|
||||
suffix: "Seconds",
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "number",
|
||||
name: "adcMultiplierOverride",
|
||||
label: "ADC Multiplier Override ratio",
|
||||
description: "Used for tweaking battery voltage reading"
|
||||
description: "Used for tweaking battery voltage reading",
|
||||
},
|
||||
{
|
||||
type: "number",
|
||||
@@ -56,10 +56,16 @@ export const Power = (): JSX.Element => {
|
||||
description:
|
||||
"If the device does not receive a Bluetooth connection, the BLE radio will be disabled after this long",
|
||||
properties: {
|
||||
suffix: "Seconds"
|
||||
}
|
||||
}
|
||||
]
|
||||
suffix: "Seconds",
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "number",
|
||||
name: "deviceBatteryInaAddress",
|
||||
label: "INA219 Address",
|
||||
description: "Address of the INA219 battery monitor",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "Sleep Settings",
|
||||
@@ -72,8 +78,8 @@ export const Power = (): JSX.Element => {
|
||||
description:
|
||||
"The device will enter super deep sleep after this time",
|
||||
properties: {
|
||||
suffix: "Seconds"
|
||||
}
|
||||
suffix: "Seconds",
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "number",
|
||||
@@ -82,8 +88,8 @@ export const Power = (): JSX.Element => {
|
||||
description:
|
||||
"How long the device will be in super deep sleep for",
|
||||
properties: {
|
||||
suffix: "Seconds"
|
||||
}
|
||||
suffix: "Seconds",
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "number",
|
||||
@@ -91,8 +97,8 @@ export const Power = (): JSX.Element => {
|
||||
label: "Light Sleep Duration",
|
||||
description: "How long the device will be in light sleep for",
|
||||
properties: {
|
||||
suffix: "Seconds"
|
||||
}
|
||||
suffix: "Seconds",
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "number",
|
||||
@@ -101,11 +107,11 @@ export const Power = (): JSX.Element => {
|
||||
description:
|
||||
"Minimum amount of time the device will stay awake for after receiving a packet",
|
||||
properties: {
|
||||
suffix: "Seconds"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
suffix: "Seconds",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
]}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user