Closed EParisot closed 3 years ago
That was a fun bug. I did find it and had to make a signature change to the Transaction and Transformation classes to fix. Please check the new test case for your issue:
https://github.com/altera2015/usbserial/blob/EmbeddingV2/test/transaction_test.dart#L65
Hey thanks, I'll look at it ! Do you plan to update the package ?
The package was updated yesterday!
That's a great new, I'll try it tomorrow !
Hi, I faced a very anoying issue I can't figure out :
my code goes goes like :
It all works great, ... on the first run... but if I stop the listening (from a button -> onTap: StartStop) and then restarts a new one, data leaks from the config response of transaction_1 to the transaction_0 and finish in my file where I write the return of transaction_0 ... but only after a first, clean run...
I tried flushing, disposing stream... nothing seems to prevent the data from being still disponible to transaction_0, after, transaction_1 already handled it... My guess is that the transaction_0 stream is never ended at all and just listen to every data disponible on the port...
How to dispatch, successively, data from a transaction (temporary) to another one (witch is more persistent) ?
EDIT: as a workaroud, I close the port and re-execute the connexion routine but this feels wrong...