mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-09 16:59:08 +01:00
Indicate success or failure to flush callback.
This commit is contained in:
committed by
Michael Ossmann
parent
4810d1f992
commit
0becbc6b4a
@@ -594,9 +594,11 @@ static void tx_complete_callback(hackrf_transfer* transfer, int success)
|
||||
stream_power += sum;
|
||||
}
|
||||
|
||||
static void flush_callback(void* flush_ctx)
|
||||
static void flush_callback(void* flush_ctx, int success)
|
||||
{
|
||||
flush_complete = true;
|
||||
if (success) {
|
||||
flush_complete = true;
|
||||
}
|
||||
stop_main_loop();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user