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.
Diff: ISP.cpp
- Revision:
- 3:eb6d9211592d
- Parent:
- 2:9e3ee0c6536b
- Child:
- 4:8046ba0a87b5
--- a/ISP.cpp Thu Sep 29 15:09:50 2011 +0000 +++ b/ISP.cpp Thu Sep 29 15:15:57 2011 +0000 @@ -141,7 +141,6 @@ int SerialBuffered::CheckTargetPresent() { //Synchronises the board with the mbed and prepares the RAM for writing to char strQn[] = "?"; char str0[] = "0"; - char strSpeed[] = "4000"; char strJ[] = "J"; char strEcho[] = "A 0"; char strSync[] = "Synchronized"; @@ -158,9 +157,9 @@ if (strcspn(buf,strOk) == 17 ) return 0; - TargetSendStringAndCR(strSpeed); //Sends "0" and waits for "OK" to be returned - readBytes(buf, 5+strlen(strSpeed)); - if ( strcspn(buf,strOk) == 5+strlen(strSpeed) ) + TargetSendStringAndCR(speed); //Sends "0" and waits for "OK" to be returned + readBytes(buf, 5+strlen(speed)); + if ( strcspn(buf,strOk) == 5+strlen(speed) ) return 0; TargetSendStringAndCR(strEcho);