gen_ft8.cpp: switch frequency to float
This commit is contained in:
parent
3a55d358f0
commit
3ff0e4ef74
1 changed files with 2 additions and 2 deletions
|
@ -55,9 +55,9 @@ int main(int argc, char **argv) {
|
|||
|
||||
const char *message = argv[1];
|
||||
const char *wav_path = argv[2];
|
||||
int frequency = 1000;
|
||||
float frequency = 1000.0;
|
||||
if (argc > 3) {
|
||||
frequency = atoi(argv[3]);
|
||||
frequency = atof(argv[3]);
|
||||
}
|
||||
|
||||
// First, pack the text data into binary message
|
||||
|
|
Loading…
Reference in a new issue