Fixed speed issue
This commit is contained in:
parent
8b07524e6b
commit
5afff62677
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ class SpeedCommand extends ImageCommand {
|
||||||
params(args) {
|
params(args) {
|
||||||
const speed = parseInt(args[0]);
|
const speed = parseInt(args[0]);
|
||||||
return {
|
return {
|
||||||
speed: isNaN(speed) ? 2 : speed
|
speed: isNaN(speed) || speed < 1 ? 2 : speed
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue