@@ -74,12 +74,14 @@ std::string AlfServer::scaBlobWrite(const std::string& parameter, AlfLink link)
7474 Sca sca = Sca (link, mSessions [link.serialId ]);
7575
7676 bool lock = false ;
77+ int lockTimeout = 0 ;
7778 // Check if the operation should be locked
7879 if (scaPairs[0 ].first == Sca::Operation::Lock) {
80+ lockTimeout = boost::get<int >(scaPairs[0 ].second );
7981 scaPairs.erase (scaPairs.begin ());
8082 lock = true ;
8183 }
82- return sca.writeSequence (scaPairs, lock);
84+ return sca.writeSequence (scaPairs, lock, lockTimeout );
8385}
8486
8587std::string AlfServer::scaMftPsuBlobWrite (const std::string& parameter, AlfLink link)
@@ -105,12 +107,14 @@ std::string AlfServer::swtBlobWrite(const std::string& parameter, AlfLink link)
105107 Swt swt = Swt (link, mSessions [link.serialId ], mSwtWordSize );
106108
107109 bool lock = false ;
110+ int lockTimeout = 0 ;
108111 // Check if the operation should be locked
109112 if (swtPairs[0 ].first == Swt::Operation::Lock) {
110- swtPairs. erase (swtPairs. begin () );
113+ lockTimeout = boost::get< int > (swtPairs[ 0 ]. second );
111114 lock = true ;
115+ swtPairs.erase (swtPairs.begin ());
112116 }
113- return swt.writeSequence (swtPairs, lock);
117+ return swt.writeSequence (swtPairs, lock, lockTimeout );
114118}
115119
116120std::string AlfServer::icBlobWrite (const std::string& parameter, AlfLink link)
0 commit comments