mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-18 08:31:04 +00:00
Treat second argument as optional.
This commit is contained in:
parent
a9c8ef642c
commit
91b263f0cf
@ -359,7 +359,12 @@ std::vector<CSL::Instruction> CSL::parse(const std::string &file_name) {
|
|||||||
case Type::KeyDelay: {
|
case Type::KeyDelay: {
|
||||||
KeyDelay argument;
|
KeyDelay argument;
|
||||||
require(argument.press_delay);
|
require(argument.press_delay);
|
||||||
require(argument.interpress_delay);
|
|
||||||
|
uint64_t interpress_delay;
|
||||||
|
stream >> interpress_delay;
|
||||||
|
if(!stream.fail()) {
|
||||||
|
argument.interpress_delay = argument.press_delay;
|
||||||
|
}
|
||||||
|
|
||||||
uint64_t carriage_return_delay;
|
uint64_t carriage_return_delay;
|
||||||
stream >> carriage_return_delay;
|
stream >> carriage_return_delay;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user