From 02b98b2112b3856e276a41b438ac2b83070807a8 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 31 Oct 2023 20:00:58 -0400 Subject: [PATCH] add fan warning and convert bool to int --- .../axe-os/src/app/components/edit/edit.component.html | 4 +++- .../axe-os/src/app/components/edit/edit.component.ts | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/main/http_server/axe-os/src/app/components/edit/edit.component.html b/main/http_server/axe-os/src/app/components/edit/edit.component.html index 95e7432c..ae568988 100644 --- a/main/http_server/axe-os/src/app/components/edit/edit.component.html +++ b/main/http_server/axe-os/src/app/components/edit/edit.component.html @@ -110,7 +110,9 @@

Settings

- +
diff --git a/main/http_server/axe-os/src/app/components/edit/edit.component.ts b/main/http_server/axe-os/src/app/components/edit/edit.component.ts index 58315941..79025169 100644 --- a/main/http_server/axe-os/src/app/components/edit/edit.component.ts +++ b/main/http_server/axe-os/src/app/components/edit/edit.component.ts @@ -71,8 +71,10 @@ export class EditComponent { form.frequency = parseInt(form.frequency); form.coreVoltage = parseInt(form.coreVoltage); + // bools to ints form.flipscreen = form.flipscreen == true ? 1 : 0; form.invertscreen = form.invertscreen == true ? 1 : 0; + form.invertfanpolarity = form.invertfanpolarity == true ? 1 : 0; this.systemService.updateSystem(form) .pipe(this.loadingService.lockUIUntilComplete())