Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello CV,
I have continued to work on my gun controller,
and am at the point where, almost everything is working,
but the serial data lag is still a problem.
The previous pull request based on your advice, improved the lag,
but it lasts only for about 24 hrs, after which I must re-boot my computer to fix it again.
But now, it seems that even that is not fixing it anymore.....
When viewing the data in the arduino serial monitor, there is no lag,
but there is major lag when watching it in FP (10secs+),
so I guess the issue must be in this code.
I would like to try to add a PurgeComm method to the code,
but I do not understand c# enough to get it to work,
so I would really like to hear your advise..
The main error is:
The name 'PurgeComm' does not exist in the current context
edit;
SerialPort.DiscardInBuffer Method
may be more appropriate.
cheers!