Indicate success or failure to flush callback.

This commit is contained in:
Martin Ling
2022-09-22 12:54:23 +01:00
committed by Michael Ossmann
parent 4810d1f992
commit 0becbc6b4a
3 changed files with 10 additions and 5 deletions

View File

@@ -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();
}