When the acquisition was stopped before a configured limit was reached, no sample data was retrieved. This is because the api.c stop routine did unregister the receive callback. Pass the stop request to the receive routine instead when stop is called while the acquisition is still running. Have sample data downloaded very much like it's done for reached limits, and existing logic will run the stop routine again after state was advanced to "idle". Extend the 'state' tracking while we are here, mark sample download as well (that was omitted in the previous implementation). Though the omission was non-fatal. Move the release of 'dram_line' to some earlier location (as soon as the resource is not needed any longer), before some rather complex calls to other routines will execute. Reported-By: Michael Kaplan <M.KAPLAN@evva.com> |
||
---|---|---|
.. | ||
api.c | ||
protocol.c | ||
protocol.h |