diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-03-23 18:39:27 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-03-23 18:39:27 +0200 |
| commit | fed8081d45d05ecf2b557515e17a5005b90a7e96 (patch) | |
| tree | 55838cf27bc364cf0b065e29921eb3fce8d6c24e /hid-tmt248.c | |
| parent | 3eba47f56dcb539b3dd475b9906ed9af7bd8db7f (diff) | |
| download | hid-tmff2-fed8081d45d05ecf2b557515e17a5005b90a7e96.tar.gz hid-tmff2-fed8081d45d05ecf2b557515e17a5005b90a7e96.zip | |
test open/close
Diffstat (limited to 'hid-tmt248.c')
| -rw-r--r-- | hid-tmt248.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/hid-tmt248.c b/hid-tmt248.c index 2881ffc..f3d4700 100644 --- a/hid-tmt248.c +++ b/hid-tmt248.c @@ -243,7 +243,14 @@ static int t248_open(void *data) if (!t248) return -ENODEV; - /* TODO: send usb commands to actually open device */ + t248->send_buffer[0] = 0x01; + t248->send_buffer[1] = 0x04; + t300rs_send_int(t248); + + t248->send_buffer[0] = 0x01; + t248->send_buffer[1] = 0x05; + t300rs_send_int(t248); + return t248->open(t248->input_dev); } @@ -253,7 +260,14 @@ static int t248_close(void *data) if (!t248) return -ENODEV; - /* TODO: send usb commands to actually close device */ + t248->send_buffer[0] = 0x01; + t248->send_buffer[1] = 0x05; + t300rs_send_int(t248); + + t248->send_buffer[0] = 0x01; + t248->send_buffer[1] = 0x00; + t300rs_send_int(t248); + t248->close(t248->input_dev); return 0; } |
