Skip to content

Commit

Permalink
Apply various small fixes.
Browse files Browse the repository at this point in the history
- added: build badges in README.md
- fixed: syntax error in appveyor.yml
- fixed: wrong cast type in CaptureVideo4Linux2.ipp

Signed-off-by: Daniel Starke <[email protected]>
  • Loading branch information
daniel-starke committed Nov 8, 2023
1 parent bddbac1 commit 18fff8a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ Documentation
Building
========

[![Linux GCC Build Status](https://img.shields.io/github/actions/workflow/status/daniel-starke/vkvm/build.yml?label=Linux)](https://github.com/daniel-starke/vkvm/actions/workflows/build.yml)
[![Windows Visual Studio Build Status](https://img.shields.io/appveyor/ci/danielstarke/vkvm/main.svg?label=Windows)](https://ci.appveyor.com/project/danielstarke/vkvm)

The following dependencies are given.
Controller:
- C99
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ build_script:

artifacts:
- path: %APPVEYOR_BUILD_FOLDER%\bin\vkvm.exe
name: VKVM
name: vkvm-binaries
2 changes: 1 addition & 1 deletion doc/protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ The following request/response messages are defined including unsolicited respon
|SET_MOUSE_SCROLL |WHEEL |- |
|USB state update interrupt&#178;|- |USB |
|LED update interrupt&#179; |- |LED |
|DEBUG message &#8308; |- |<arbitrary string>|
|DEBUG message&#8308; |- |<arbitrary string>|

1\) The maximum frame size is 256 bytes which limits the maximum number of keys/buttons per request.
2\) The USB state update interrupt has the sequence number 0 and response type I_USB_STATE_UPDATE.
Expand Down
4 changes: 2 additions & 2 deletions src/pcf/video/CaptureVideo4Linux2.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file CaptureVideo4Linux2.ipp
* @author Daniel Starke
* @date 2020-01-12
* @version 2023-10-26
* @version 2023-11-08
*/
#include <algorithm>
#include <cstdint>
Expand Down Expand Up @@ -814,7 +814,7 @@ private:
int n = 0, sel = -1;
for (menuQuery.index = __u32(ctrlQuery.minimum); menuQuery.index <= __u32(ctrlQuery.maximum); menuQuery.index++, n++) {
if (xEINTR(ioctl, this->videoFd, VIDIOC_QUERYMENU, &menuQuery) < 0) continue;
optionValue->add(reinterpret_cast<const char *>(menuQuery.name), 0, NULL, static_cast<void *>(menuQuery.index));
optionValue->add(reinterpret_cast<const char *>(menuQuery.name), 0, NULL, reinterpret_cast<void *>(menuQuery.index));
if (menuQuery.index == __u32(op->oldValue)) sel = n;
}
if (sel >= 0) optionValue->value(sel);
Expand Down

0 comments on commit 18fff8a

Please sign in to comment.