Skip to content

Commit

Permalink
Fix v1 sensor configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cadivus committed Oct 23, 2024
1 parent f14af64 commit d7c27bb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions open_earable/lib/controls_tab/views/v1_sensor_configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ class _V1SensorConfigurationCardState extends State<V1SensorConfigurationCard> {
});
}
}, (String newValue) {
OpenEarableSettings().selectedImuOption = newValue;
setState(() {
OpenEarableSettings().selectedImuOption = newValue;
});
}),
_sensorConfigurationRow(
"Barometer",
Expand All @@ -139,7 +141,9 @@ class _V1SensorConfigurationCardState extends State<V1SensorConfigurationCard> {
});
}
}, (String newValue) {
OpenEarableSettings().selectedBarometerOption = newValue;
setState(() {
OpenEarableSettings().selectedBarometerOption = newValue;
});
}),
_sensorConfigurationRow(
"Microphone",
Expand All @@ -151,7 +155,9 @@ class _V1SensorConfigurationCardState extends State<V1SensorConfigurationCard> {
OpenEarableSettings().microphoneSettingSelected = newValue!;
});
}, (String newValue) {
OpenEarableSettings().selectedMicrophoneOption = newValue;
setState(() {
OpenEarableSettings().selectedMicrophoneOption = newValue;
});
}),
SizedBox(height: 8),
Row(
Expand Down

0 comments on commit d7c27bb

Please sign in to comment.