Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangzp committed Feb 14, 2022
1 parent f251da5 commit 29eb611
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions plugin-echoprobe/EchoProbeInitiator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -247,20 +247,24 @@ std::tuple<std::optional<ModularPicoScenesRxFrame>, std::optional<ModularPicoSce

std::shared_ptr<PicoScenesFrameBuilder> EchoProbeInitiator::buildBasicFrame(uint16_t taskId, const EchoProbePacketFrameType &frameType, uint16_t sessionId) const {
auto fp = std::make_shared<PicoScenesFrameBuilder>(nic);
fp->resetFrameBuilder();

/**
* @brief PicoScenes Platform CLI parser has *absorbed* the common Tx parameters.
* The platform parser will parse the Tx parameters options and store the results in AbstractNIC.
* Plugin developers now can access the parameters via a new method nic->getUserSpecifiedTxParameters().
*/
fp->setTxParameters(nic->getUserSpecifiedTxParameters());

if (frameType == SimpleInjectionFrameType && parameters.injectorContent == EchoProbeInjectionContent::NDP) {
fp->setNDPFrame();
fp->makeFrame_NDP();
/**
* @brief PicoScenes Platform CLI parser has *absorbed* the common Tx parameters.
* The platform parser will parse the Tx parameters options and store the results in AbstractNIC.
* Plugin developers now can access the parameters via a new method nic->getUserSpecifiedTxParameters().
*/
fp->setTxParameters(nic->getUserSpecifiedTxParameters());
return fp;
} else {
fp->makeFrame_HeaderOnly();
/**
* @brief PicoScenes Platform CLI parser has *absorbed* the common Tx parameters.
* The platform parser will parse the Tx parameters options and store the results in AbstractNIC.
* Plugin developers now can access the parameters via a new method nic->getUserSpecifiedTxParameters().
*/
fp->setTxParameters(nic->getUserSpecifiedTxParameters());
fp->setTaskId(taskId);
fp->setPicoScenesFrameType(frameType);

Expand Down

0 comments on commit 29eb611

Please sign in to comment.