1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-03 00:30:39 +00:00

Treat second argument as optional.

This commit is contained in:
Thomas Harte 2024-08-14 20:55:33 -04:00
parent a9c8ef642c
commit 91b263f0cf

View File

@ -359,7 +359,12 @@ std::vector<CSL::Instruction> CSL::parse(const std::string &file_name) {
case Type::KeyDelay: {
KeyDelay argument;
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;
stream >> carriage_return_delay;