diff --git a/interface/src/app/main/Sensors.tsx b/interface/src/app/main/Sensors.tsx
index b2e90736e..e6ed94d52 100644
--- a/interface/src/app/main/Sensors.tsx
+++ b/interface/src/app/main/Sensors.tsx
@@ -360,7 +360,7 @@ const Sensors = () => {
v: 0,
o: 0,
f: 1,
- t: AnalogType.NOTUSED,
+ t: AnalogType.DIGITAL_IN, // default to digital in 1
d: false,
s: false,
o_n: ''
@@ -462,7 +462,7 @@ const Sensors = () => {
>
| {as.g} |
{as.n} |
- {AnalogTypeNames[as.t]} |
+ {AnalogTypeNames[as.t - 1]} |
{(as.t === AnalogType.DIGITAL_OUT &&
as.g !== GPIO_25 &&
as.g !== GPIO_26) ||
@@ -470,9 +470,7 @@ const Sensors = () => {
as.t === AnalogType.PULSE ? (
{as.v ? LL.ON() : LL.OFF()} |
) : (
-
- {as.t !== AnalogType.NOTUSED ? formatValue(as.v, as.u) : ''}
- |
+ {formatValue(as.v, as.u)} |
)}
))}
diff --git a/interface/src/app/main/SensorsAnalogDialog.tsx b/interface/src/app/main/SensorsAnalogDialog.tsx
index 83e29b635..4e94bf42a 100644
--- a/interface/src/app/main/SensorsAnalogDialog.tsx
+++ b/interface/src/app/main/SensorsAnalogDialog.tsx
@@ -98,7 +98,7 @@ const SensorsAnalogDialog = ({
const analogTypeMenuItems = useMemo(
() =>
AnalogTypeNames.map((val, i) => (
-