From: Joseph C. Lehner Date: Sat, 13 Feb 2016 23:04:03 +0000 (+0100) Subject: Show different message if no upload requests were received X-Git-Tag: v0.9.2~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=23f1eb24695230ecb5974ddda29e7b79654f5dc1;p=oweals%2Fnmrpflash.git Show different message if no upload requests were received --- diff --git a/nmrp.c b/nmrp.c index f307a9d..ff4aeb7 100644 --- a/nmrp.c +++ b/nmrp.c @@ -634,7 +634,11 @@ int nmrp_do(struct nmrpd_args *args) status = 0; - printf("Reboot your device now.\n"); + if (ulreqs) { + printf("Reboot your device now.\n"); + } else { + printf("No upload request received.\n"); + } out: signal(SIGINT, sigh_orig);