diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-02-08 04:05:45 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-02-08 04:05:45 +0100 |
commit | c454b179994110077399eb5e2cce6e082d8780d2 (patch) | |
tree | 6f06d28af07439d3a3944d031aa7113f56155811 | |
parent | b729b1d23f8234b904fcf308349e63ff970e6752 (diff) | |
download | sensei-raw-ctl-c454b179994110077399eb5e2cce6e082d8780d2.tar.gz sensei-raw-ctl-c454b179994110077399eb5e2cce6e082d8780d2.tar.xz sensei-raw-ctl-c454b179994110077399eb5e2cce6e082d8780d2.zip |
Fix variable type
-rw-r--r-- | sensei-raw-ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sensei-raw-ctl.c b/sensei-raw-ctl.c index 21c73a8..8ca9fb6 100644 --- a/sensei-raw-ctl.c +++ b/sensei-raw-ctl.c @@ -192,7 +192,7 @@ sensei_set_intensity (libusb_device_handle *device, { unsigned char cmd_1[32] = { 0x05, 0x01, intensity }; unsigned char cmd_2[32] = { 0x05, 0x02, intensity }; - unsigned result = sensei_send_command (device, cmd_1, sizeof cmd_1); + int result = sensei_send_command (device, cmd_1, sizeof cmd_1); if (result < 0) return result; return sensei_send_command (device, cmd_2, sizeof cmd_2); @@ -205,7 +205,7 @@ sensei_set_pulsation (libusb_device_handle *device, { unsigned char cmd_1[32] = { 0x07, 0x01, pulsation }; unsigned char cmd_2[32] = { 0x07, 0x02, pulsation }; - unsigned result = sensei_send_command (device, cmd_1, sizeof cmd_1); + int result = sensei_send_command (device, cmd_1, sizeof cmd_1); if (result < 0) return result; return sensei_send_command (device, cmd_2, sizeof cmd_2); |