morseText should take a const char*

This commit is contained in:
Reed Nightingale 2020-02-09 17:04:00 -08:00
parent 5a12a636be
commit 9e21faa6f1
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ void morseLetter(char c, uint16_t dit_duration_ms){
}
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;
morseBool(false);
enc_read();//Don't count initial tone against total_counts

View File

@ -1,7 +1,7 @@
#include "settings.h"
//sends out morse code at the speed set by cwSpeed
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
void morseBool(bool val);