Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

conradopoole
Copy link

No description provided.

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

Copy link
Owner

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");
Copy link
Owner

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;
Copy link
Owner

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants