Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Socket USBHostWANDongle lwip-sys lwip
Dependents: VodafoneUSBModemHTTPClientTest VodafoneUSBModemNTPClientTest VodafoneUSBModemSMSTest VodafoneUSBModemUSSDTest ... more
Fork of VodafoneUSBModem_bleedingedge by
Revision 35:be311326ee06, committed 2012-09-14
- Comitter:
- donatien
- Date:
- Fri Sep 14 15:11:06 2012 +0000
- Parent:
- 34:b53c619b036d
- Child:
- 36:45c3b5cb0234
- Commit message:
- volatile'd some variables in USSDInterface, just to be sure
Changed in this revision
| ussd/USSDInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
| ussd/USSDInterface.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ussd/USSDInterface.cpp Fri Sep 14 10:15:02 2012 +0000
+++ b/ussd/USSDInterface.cpp Fri Sep 14 15:11:06 2012 +0000
@@ -178,7 +178,7 @@
return;
}
size_t cpyLen = MIN( pEnd - pStart, m_maxResultLength - 1 );
- memcpy(m_result, pStart, cpyLen);
+ memcpy((void*)m_result, pStart, cpyLen);
m_result[cpyLen] = '\0';
DBG("Got USSD response: %s", m_result);
m_responseMtx.unlock();
--- a/ussd/USSDInterface.h Fri Sep 14 10:15:02 2012 +0000 +++ b/ussd/USSDInterface.h Fri Sep 14 15:11:06 2012 +0000 @@ -69,8 +69,8 @@ Semaphore m_responseSphre; //Result - char* m_result; - size_t m_maxResultLength; + volatile char* m_result; + volatile size_t m_maxResultLength; };

Vodafone K3770 3G Modem