morseText should take a const char*
This commit is contained in:
parent
5a12a636be
commit
9e21faa6f1
@ -106,7 +106,7 @@ void morseLetter(char c, uint16_t dit_duration_ms){
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const uint8_t RELATIVE_OFFSET_HZ = 100;
|
static const uint8_t RELATIVE_OFFSET_HZ = 100;
|
||||||
void morseText(char *text, uint16_t dit_duration_ms){
|
void morseText(const char *text, uint16_t dit_duration_ms){
|
||||||
int16_t total_counts = 0;
|
int16_t total_counts = 0;
|
||||||
morseBool(false);
|
morseBool(false);
|
||||||
enc_read();//Don't count initial tone against total_counts
|
enc_read();//Don't count initial tone against total_counts
|
||||||
|
2
morse.h
2
morse.h
@ -1,7 +1,7 @@
|
|||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
//sends out morse code at the speed set by cwSpeed
|
//sends out morse code at the speed set by cwSpeed
|
||||||
void morseLetter(char c, uint16_t dit_duration_ms = globalSettings.cwDitDurationMs);
|
void morseLetter(char c, uint16_t dit_duration_ms = globalSettings.cwDitDurationMs);
|
||||||
void morseText(char *text, uint16_t dit_duration_ms = globalSettings.cwDitDurationMs);
|
void morseText(const char *text, uint16_t dit_duration_ms = globalSettings.cwDitDurationMs);
|
||||||
|
|
||||||
//Plays either a higher or lower tone to indicate a boolean value
|
//Plays either a higher or lower tone to indicate a boolean value
|
||||||
void morseBool(bool val);
|
void morseBool(bool val);
|
||||||
|
Loading…
Reference in New Issue
Block a user