Skip to content

Commit 2f9de0a

Browse files
committed
WIP win-vhid iter9: timer period 5s->50ms so scenario input replays within read timeout
1 parent 3e46f99 commit 2f9de0a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/tests/windows/driver/vhidmini.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,10 +1273,13 @@ Return Value:
12731273
queueContext->Queue = queue;
12741274
queueContext->DeviceContext = GetDeviceContext(Device);
12751275

1276+
/* HIDAPI test: poll the scenario state often so a triggered input report
1277+
is replayed promptly (well within the test's read timeouts). */
1278+
(void)timerPeriodInSeconds;
12761279
WDF_TIMER_CONFIG_INIT_PERIODIC(
12771280
&timerConfig,
12781281
EvtTimerFunc,
1279-
timerPeriodInSeconds * 1000);
1282+
50 /* ms */);
12801283

12811284
WDF_OBJECT_ATTRIBUTES_INIT(&timerAttributes);
12821285
timerAttributes.ParentObject = queue;

0 commit comments

Comments
 (0)