Skip to content

Commit

Permalink
registration fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Hurd committed Oct 12, 2019
1 parent 30716f8 commit 57fbecc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Registation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ static std::vector<SoapySDR::Kwargs> findSidekiq(const SoapySDR::Kwargs &args) {
SoapySDR_log(SOAPY_SDR_ERROR, "Failure: skiq_read_serial_string");
}

/* check if card is avail */
if(skiq_is_card_avail(i, &card_owner) != 0){
SoapySDR_log(SOAPY_SDR_ERROR, "Failure: skiq_is_card_avail");
}
/* get card availability */
skiq_is_card_avail(i, &card_owner);
deviceAvailable = (card_owner == getpid()); // owner must be this process(pid)
if (!deviceAvailable) {
SoapySDR_logf(SOAPY_SDR_WARNING, "Unable to access card #%d, owner pid (%d)", i, card_owner);
Expand Down

0 comments on commit 57fbecc

Please sign in to comment.