From: Martin Mares Date: Sat, 22 Nov 2014 19:33:12 +0000 (+0100) Subject: Nocturn: Do not write to a missing USB device X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=47295f541ce652feaf008e8879ce7ae58e84987b;p=ursary.git Nocturn: Do not write to a missing USB device --- diff --git a/nocturn.c b/nocturn.c index ba5edf2..158f140 100644 --- a/nocturn.c +++ b/nocturn.c @@ -270,7 +270,7 @@ static void noct_do_write(uint cmd, uint arg) static void noct_sched_write(void) { - if (noct_write_pending) + if (!usb_dev || noct_write_pending) return; if (noct_dirty_button)