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

Extend format check to support fractions #2666

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

TheLongAndOnly
Copy link

Voltage and current readout does not pass the checks before pushed to ramdisk as the status requests returns floats and not integers

@@ -1,5 +1,5 @@
#!/bin/bash
re='^-?[0-9]+$'
re='^-?[0-9]+(\.[0-9]+)?$'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Die Anpassung wirkt sich auf alle Prüfungen aus. Mindestens die Leistung muss ein ganzzahliger Wert sein.
Bitte einen separaten regulären Ausdruck definieren und bei Strom und Spannung nutzen.

separate RE für V, A und Pf
Copy link
Collaborator

@benderl benderl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bitte die drei angepassten Dateien nochmal prüfen. Warum sind dort unterschiedliche Änderungen drin?

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