QDNX Bug Tracker :: QDNX Bug Tracker :: RatSlap: Recently closed tasks https://bugs.qdnx.org/ 2018-08-06T15:11:53Z QB#124: Failed operations don't abort execution 2018-08-06T15:11:53Z 2018-07-10T15:32:34Z

A failed operation doesn’t abort execution such that subsequent parameters are
still parsed and executed. eg.

$ ./ratslap -s INVALID1 -s INVALID2 -s INVALID3
RatSlap v0.2.2 (BUILT: 2018-05-01 01:00:50+1000)
Copyright (C) 2016 Todd Harbour
Linux configuration tool for Logitech mice (currently only G300/G300S)
https://gitlab.com/krayon/ratslap/
Found Logitech G300s (046d:c246) @ 0x1470620
Detaching kernel driver...
20180711T012738+1000 [E]           main.c:01322:main            ERROR: Invalid mode for select option: INVALID1
20180711T012738+1000 [E]           main.c:01322:main            ERROR: Invalid mode for select option: INVALID2
20180711T012738+1000 [E]           main.c:01322:main            ERROR: Invalid mode for select option: INVALID3
Attaching kernel driver...

I can’t think of any way at present that this could be bad but it’s probably
not a good idea.

Krayon https://bugs.qdnx.org/:124
QB#123: Check mode_load() return code 2018-08-06T15:11:40Z 2018-07-10T14:23:31Z

Currently we are not checking the return code of mode_load(). This could lead
to weird results in the printing of a mode.

Krayon https://bugs.qdnx.org/:123
QB#122: Help shouldn't require USB permissions 2018-08-06T15:11:27Z 2018-07-08T07:43:04Z

From GitHub Issue #15 by ChillyWillyGuru:

If you run 'ratslap -h' normally such that the user doesn't have access to
the usb, you get an error about not being able to do any usb ops rather than
the help. Help should ALWAYS be available. I'd suggest checking if the help
option has been asked for first before anything else, and if so print the
help and exit. Only if the user doesn't want help should it then try to get
the usb.
Krayon https://bugs.qdnx.org/:122
QB#114: Factory reset option 2018-07-10T14:44:31Z 2016-11-09T11:44:38Z

It would be good to have a factory reset option to return the mouse to
(Logitech’s idea of) sane button assignments.

Krayon https://bugs.qdnx.org/:114
QB#121: set_debug is deprecated, use libusb_set_option instead 2018-07-10T14:40:37Z 2018-04-27T11:06:47Z

From GitHub PR #14 by captn3m0 :

Use libusb_set_option, set_debug is deprecated

Krayon https://bugs.qdnx.org/:121
QB#111: Build fails: implicit declaration of function 'libusb_strerror' 2017-02-27T11:47:47Z 2016-11-08T22:26:03Z

On systems with older libusb, libusb_strerror isn’t defined and will therefore lead to
a failure to build.

Krayon https://bugs.qdnx.org/:111
QB#117: Compile fails when ctags missing 2017-02-27T11:47:30Z 2017-02-27T10:38:08Z

From GitHub Issue #7 by akred :

  Hello,
  
  Can you add documentation in order to explain how to install this tool please ?
  For those who are not familiar to C language.
  On my side, I have download sources and run the command "make", but I have an error which is :
  
      /bin/sh: 1: ctags: not found
      Makefile:170 : la recette pour la cible ? ctags ? a ?chou?e
      make: *** [ctags] Erreur 127
  
  Thanks for your help

Obviously ctags shouldn’t be required for compilation, only development.

Krayon https://bugs.qdnx.org/:117
QB#106: Modify mode - change button assignment 2016-11-08T13:46:42Z 2016-11-08T13:10:52Z

Ability to map different keys to each button

Krayon https://bugs.qdnx.org/:106
QB#109: kernel driver disconnect after --listkeys 2016-11-08T13:46:01Z 2016-11-08T13:43:11Z

The kernel driver stays disconnected after calling ratslap with –listkeys.

Krayon https://bugs.qdnx.org/:109
QB#108: kernel driver disconnect after --help/--version 2016-11-08T13:45:37Z 2016-11-08T13:39:54Z

The kernel driver stays disconnected after calling ratslap with –help or –version.

Krayon https://bugs.qdnx.org/:108