Add comments anf better formating to USSDHandler::postUSSDData().
This commit is contained in:
parent
dd366df4f4
commit
58821a8f74
|
@ -678,12 +678,21 @@ void USSDHandler::postUSSDData(Control::USSDData::USSDMessageType messageType, s
|
|||
USSDString.erase(USSDString.begin()+USSD_MAX_CHARS_7BIT-contLen, USSDString.end());
|
||||
USSDString += mContinueStr;
|
||||
}
|
||||
else mString = "";
|
||||
else
|
||||
{
|
||||
mString = "";
|
||||
}
|
||||
|
||||
// Step 1 -- Find transaction
|
||||
TransactionEntry transaction;
|
||||
gTransactionTable.find(mTransactionID, transaction);
|
||||
|
||||
// Step 2 -- Update transaction with the data to send
|
||||
transaction.ussdData()->MessageType(messageType);
|
||||
transaction.ussdData()->USSDString(USSDString);
|
||||
gTransactionTable.update(transaction);
|
||||
|
||||
// Step 3 -- Notify the dispatcher thread that data is ready to be sent
|
||||
transaction.ussdData()->postNW();
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue