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

Data reading in Modal Window #153

Open
freespirit83xyz opened this issue Jan 8, 2020 · 0 comments
Open

Data reading in Modal Window #153

freespirit83xyz opened this issue Jan 8, 2020 · 0 comments

Comments

@freespirit83xyz
Copy link

freespirit83xyz commented Jan 8, 2020

Hello to all,
I'm here to show an issues that I encountered working with modal window.
The issue was that serial port received data but not notify to delegate until the modal window stops. The guilty command is -(void)receiveData:(NSData *)data in ORSSerialPort.m

I replaced dispatch_async block with [self performSelectorOnMainThread:@selector(notifyDelegate:) withObject:data waitUntilDone:NO]; and added
-(void) notifyDelegate:(NSData *)data { if ([self.delegate respondsToSelector:@selector(serialPort:didReceiveData:)]) { [self.delegate serialPort:self didReceiveData:data]; } }

Hope this can help and the fix will be implemented in next releases.

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

No branches or pull requests

1 participant