mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-02-20 00:33:48 +01:00
Move resetting of byte counts to the M0.
Previously, these counts were zeroed by the M4 when leaving the OFF transceiver mode. Instead, do this on the M0 at the point where the M0 leaves IDLE mode. This avoids a potential race in which the M4 zeroes the M0 count after the M0 has already started incrementing it.
This commit is contained in:
@@ -301,8 +301,6 @@ void transceiver_startup(const transceiver_mode_t mode) {
|
||||
|
||||
activate_best_clock_source();
|
||||
hw_sync_enable(_hw_sync_mode);
|
||||
m0_state.m0_count = 0;
|
||||
m0_state.m4_count = 0;
|
||||
}
|
||||
|
||||
usb_request_status_t usb_vendor_request_set_transceiver_mode(
|
||||
|
||||
Reference in New Issue
Block a user