Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cpuload.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

float cpuload(int user, int nice, int sys, int idle) {
Expand Down
5 changes: 5 additions & 0 deletions dcled.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <ctype.h>
#include <getopt.h>
#include <time.h>
#include <sys/select.h>
Expand Down Expand Up @@ -262,7 +263,11 @@ int open_usbdev(struct ledscreen *disp) {
}

if(debug) {
#if LIBUSB_API_VERSION >= 0x01000106
libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL, 3);
#else
libusb_set_debug(NULL,3);
#endif
}

/* Fetch a list of all the available devices. */
Expand Down