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: MorseCode.cpp
- Revision:
- 5:4136e9141bde
- Parent:
- 2:aa9a1377aa0d
- Child:
- 6:02df5c1108f1
--- a/MorseCode.cpp Wed Apr 08 11:28:24 2020 +0000 +++ b/MorseCode.cpp Wed Apr 08 12:36:17 2020 +0000 @@ -6,10 +6,10 @@ reserved (R). This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0/>. */ -#include "morse_code.h" +#include "MorseCode.h" namespace mbedBug { -const char* MorseCode (char code) { - Space = " "; //< +const char* MorseCode (char Code) { + static const char* Space = " "; //< static const char* Cypher[] = { ".-.-.", //< ASCII: NUL, Morse code: End of message.