diff --git a/examples/hub_demo/hub_demo.ino b/examples/hub_demo/hub_demo.ino index adc1751f..ab77c345 100644 --- a/examples/hub_demo/hub_demo.ino +++ b/examples/hub_demo/hub_demo.ino @@ -96,7 +96,7 @@ void loop() Usb.Task(); if ( Usb.getUsbTaskState() == USB_STATE_RUNNING ) { - if ((millis() - next_time) >= 0L) { + if ((long)(millis() - next_time) >= 0L) { Usb.ForEachUsbDevice(&PrintAllDescriptors); Usb.ForEachUsbDevice(&PrintAllAddresses);