taught qnremote to use '_' in URCall

pull/14/head
Tom Early 6 years ago
parent 6e5656aabd
commit ede11f7af2

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2010 by Scott Lawson KI4LKF * Copyright (C) 2010 by Scott Lawson KI4LKF
* Copyright (C) 2018-2019 by Thomas A. Early N7TAE * Copyright (C) 2018-2020 by Thomas A. Early N7TAE
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -39,7 +39,11 @@
#include "QnetConfigure.h" #include "QnetConfigure.h"
#include "UnixDgramSocket.h" #include "UnixDgramSocket.h"
#define VERSION "v2.2" #define VERSION "v2.3"
#ifndef CFG_DIR
#define CFG_DIR "/usr/local/etc"
#endif
int module; int module;
time_t tNow = 0; time_t tNow = 0;
@ -185,6 +189,12 @@ int main(int argc, char *argv[])
} }
std::string yourcall(argv[3]); std::string yourcall(argv[3]);
ToUpper(yourcall); ToUpper(yourcall);
// replace underscores with spaces
auto pos = yourcall.find_first_of('_');
while (yourcall.npos != pos) {
yourcall[pos] = ' ';
pos = yourcall.find_first_of('_');
}
unsigned long int delay = PLAY_DELAY * 1000; unsigned long int delay = PLAY_DELAY * 1000;
sleep(PLAY_WAIT); sleep(PLAY_WAIT);

@ -221,6 +221,6 @@ if ('true' == GetCFGValue('dash_show_ur')) {
} }
?> ?>
<br> <br>
<p align="right">QnetGateway Dashboard Version 2.0 Copyright (&copy;) by Thomas A. Early, N7TAE.</p> <p align="right">QnetGateway Dashboard Version 2.0 Copyright &copy; by Thomas A. Early, N7TAE.</p>
</body> </body>
</html> </html>

Loading…
Cancel
Save

Powered by TurnKey Linux.