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

Bugfix/makenumber #60

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

Bugfix/makenumber #60

wants to merge 2 commits into from

Conversation

Joshpolansky
Copy link
Member

What

Change the default local value to empty instead of undefined. Also convert numbers to numbers before processing..

Why

It is better..

Comment on lines 1500 to +1501
if ( this.value.call(this, variableName) === undefined) {
this.writeVariable(variableName, 'undefined');
this.writeVariable(variableName, '');
Copy link
Member

Choose a reason for hiding this comment

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

Why are we doing this at all?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is for local data, not data written to the plc. We implicitly create read variables for local data

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