Commit b4ae7e85 authored by Donald Chen's avatar Donald Chen
Browse files

apply old pc-ble patches for thread sync

parent cd77e0fa
......@@ -125,6 +125,10 @@ uint32_t H5Transport::open(const status_cb_t &status_callback, const data_cb_t &
return NRF_ERROR_SD_RPC_H5_TRANSPORT_STATE;
}
//reset all exit criteria
const auto startExitCriteria = exitCriterias.at(STATE_START);
startExitCriteria->reset();
// State machine starts in a separate thread.
// Wait for the state machine to be ready
startStateMachine();
......@@ -851,7 +855,7 @@ void H5Transport::stateMachineWorker()
switch (nextState)
{
case STATE_START:
dynamic_cast<StartExitCriterias *>(exitCriterias[STATE_START].get())->reset();
//dynamic_cast<StartExitCriterias *>(exitCriterias[STATE_START].get())->reset();
break;
case STATE_RESET:
dynamic_cast<ResetExitCriterias *>(exitCriterias[STATE_RESET].get())->reset();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment