Skip to content

Extend format check to support fractions#2666

Open
TheLongAndOnly wants to merge 6 commits intosnaptec:masterfrom
TheLongAndOnly:fix_goe_readout
Open

Extend format check to support fractions#2666
TheLongAndOnly wants to merge 6 commits intosnaptec:masterfrom
TheLongAndOnly:fix_goe_readout

Conversation

@TheLongAndOnly
Copy link
Copy Markdown

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

Comment thread modules/goelp1/main.sh Outdated
@@ -1,5 +1,5 @@
#!/bin/bash
re='^-?[0-9]+$'
re='^-?[0-9]+(\.[0-9]+)?$'
Copy link
Copy Markdown
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
Copy Markdown
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