Skip to content

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