-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monitoring-only mode changes + new environment for PIO #56
base: main
Are you sure you want to change the base?
Conversation
twilighlord-owie-esp8266 board added to platformio.ini
Monitoring-only mode
@@ -51,3 +51,34 @@ upload_protocol = custom | |||
[env:native] | |||
platform = native | |||
debug_test = test_bms_relay | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this chunk please.
@@ -59,39 +65,46 @@ <h2>Owie Settings</h2> | |||
form.setAttribute("action", oldAction); | |||
}; | |||
|
|||
const monCheckbox = document.getElementById("monChk"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bit won't be necessary if instead of using the dataset on the checkbox you directly dump the checked attribute on it.
i.e. "<input type="checkbox" %SPOOFING_DISABLED%>" and SPOOFING_DISABLED is either "" or "checked"
@@ -12,5 +12,6 @@ message SettingsMsg { | |||
int32 wifi_power = 8; | |||
bool is_locked = 9; // if the board is actively locked/parked | |||
bool locking_enabled = 10; // if the board locking functionality is enabled ('armed') | |||
reserved 11; | |||
bool monitoring_only_enabled = 11; | |||
reserved 12; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reserved IDs are for the fields that have been removed. These IDs shouldn't be reused, that's why it's called reserved. I'd also call the boolean monitoring_only_mode
.
So this should be:
bool monitoring_only_mode = 12;
reserved 11;
No description provided.