iphone safe area fixes yess

This commit is contained in:
legop3
2026-06-12 14:40:42 -04:00
parent 033bafeead
commit 87dc70d11d
9 changed files with 157 additions and 161 deletions
+6 -1
View File
@@ -473,7 +473,12 @@ export function ControlSystemProvider({ children }) {
(nightVisionOn) => {
if (!pipeline.nightVision) return;
if (typeof nightVisionOn === 'boolean') {
const action = nightVisionOn ? 'on' : 'off';
/*
Rover daemon command names describe the IR LED, while the UI state
describes camera visibility. LED "off" means nightVisionOn=true, and
LED "on" means nightVisionOn=false.
*/
const action = nightVisionOn ? 'off' : 'on';
pipeline.sendNightVision(action);
} else {
pipeline.sendNightVision('toggle');