mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
add option to disable LMS - release
This commit is contained in:
@@ -53,6 +53,7 @@ static void usage(const char *argv0) {
|
|||||||
"Usage: %s [options]\n"
|
"Usage: %s [options]\n"
|
||||||
" -s <server>[:<port>]\tConnect to specified server, otherwise uses autodiscovery to find server\n"
|
" -s <server>[:<port>]\tConnect to specified server, otherwise uses autodiscovery to find server\n"
|
||||||
#if !EMBEDDED
|
#if !EMBEDDED
|
||||||
|
" NB: use \"-disable\" (no quote) as server to disable LMS connection\n"
|
||||||
" -o <output device>\tSpecify output device, default \"default\", - = output to stdout\n"
|
" -o <output device>\tSpecify output device, default \"default\", - = output to stdout\n"
|
||||||
" -l \t\t\tList output devices\n"
|
" -l \t\t\tList output devices\n"
|
||||||
#endif
|
#endif
|
||||||
@@ -810,6 +811,12 @@ int squeezelite_main(int argc, char **argv) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if EMBEDDED
|
||||||
|
if (server && !strcasecmp(server, "-disable")) {
|
||||||
|
LOG_ERROR("LMS is disabled");
|
||||||
|
while (1) sleep(3600);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
slimproto(log_slimproto, server, mac, name, namefile, modelname, maxSampleRate);
|
slimproto(log_slimproto, server, mac, name, namefile, modelname, maxSampleRate);
|
||||||
|
|
||||||
decode_close();
|
decode_close();
|
||||||
|
|||||||
Reference in New Issue
Block a user