Fix README and help output

This commit is contained in:
Vasily Evseenko 2022-05-27 16:46:14 +03:00
parent 6bc5a53022
commit 83d1eeb025
5 changed files with 12 additions and 1 deletions

View File

@ -112,3 +112,7 @@ https://dev.px4.io/en/qgc/video_streaming_wifi_broadcast.html
Wiki:
-----
See https://github.com/svpcom/wifibroadcast/wiki for additional info
Community chat:
---------------
Telegram: https://t.me/EZWBC

View File

@ -60,7 +60,7 @@ if version and commit:
fd.write("# Don't make any changes here, use local.cfg instead!\n\n[common]\nversion = %r\ncommit = %r\n" % (version, commit))
setup(
url="http://github.com/svpcom/wifibroadcast",
url="http://wifibroadcast.org",
name="wifibroadcast",
version=version,
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),

View File

@ -862,6 +862,7 @@ int main(int argc, char* const *argv)
fprintf(stderr, "Remote (aggregator): %s -a server_port [-K rx_key] [-k RS_K] [-n RS_N] [-c client_addr] [-u client_port] [-l log_interval]\n", argv[0]);
fprintf(stderr, "Default: K='%s', k=%d, n=%d, connect=%s:%d, radio_port=%d, log_interval=%d\n", keypair.c_str(), k, n, client_addr.c_str(), client_port, radio_port, log_interval);
fprintf(stderr, "WFB version " WFB_VERSION "\n");
fprintf(stderr, "WFB home page: <http://wifibroadcast.org>\n");
exit(1);
}
}

View File

@ -362,6 +362,7 @@ int main(int argc, char * const *argv)
keypair.c_str(), k, n, udp_port, radio_port, bandwidth, short_gi ? "short" : "long", stbc, ldpc, mcs_index, poll_timeout);
fprintf(stderr, "Radio MTU: %lu\n", (unsigned long)MAX_PAYLOAD_SIZE);
fprintf(stderr, "WFB version " WFB_VERSION "\n");
fprintf(stderr, "WFB home page: <http://wifibroadcast.org>\n");
exit(1);
}
}

View File

@ -471,7 +471,12 @@ def init_tunnel(profile, wlans):
def main():
log.startLogging(sys.stdout)
log.msg('WFB version %s-%s' % (settings.common.version, settings.common.commit[:8]))
profile, wlans = sys.argv[1], list(wlan for arg in sys.argv[2:] for wlan in arg.split())
uname = os.uname()
log.msg('Run on %s/%s @%s, profile %s using %s' % (uname[4], uname[2], uname[1], profile, ', '.join(wlans)))
reactor.callWhenRunning(lambda: defer.maybeDeferred(init, profile, wlans)\
.addErrback(abort_on_crash))
reactor.run()