fix: Sleep request fields are exclusive so both optional fixes #1042

This commit is contained in:
Christophe Carvalho Vilas-Boas 2022-10-20 12:38:32 +02:00 committed by tt2468
parent 7e4c9529eb
commit 290e042612
2 changed files with 4 additions and 2 deletions

View File

@ -311,8 +311,8 @@ RequestResult RequestHandler::TriggerHotkeyByKeySequence(const Request &request)
/**
* Sleeps for a time duration or number of frames. Only available in request batches with types `SERIAL_REALTIME` or `SERIAL_FRAME`.
*
* @requestField sleepMillis | Number | Number of milliseconds to sleep for (if `SERIAL_REALTIME` mode) | >= 0, <= 50000
* @requestField sleepFrames | Number | Number of frames to sleep for (if `SERIAL_FRAME` mode) | >= 0, <= 10000
* @requestField ?sleepMillis | Number | Number of milliseconds to sleep for (if `SERIAL_REALTIME` mode) | >= 0, <= 50000
* @requestField ?sleepFrames | Number | Number of frames to sleep for (if `SERIAL_FRAME` mode) | >= 0, <= 10000
*
* @requestType Sleep
* @complexity 2

View File

@ -278,6 +278,8 @@ RequestResult RequestHandler::GetLastReplayBufferReplay(const Request &)
/**
* Gets the list of available outputs.
*
* @responseField outputs | Array<Object> | Array of outputs
*
* @requestType GetOutputList
* @complexity 4