Commit 8d154434827bfba9f99a97b6ac833223d2130483

Authored by Adhidarma Hadiwinoto
1 parent 9c987135ae
Exists in master

MODEM-TESTER: simple for loops for command

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -99,7 +99,8 @@ port = new SerialPort(config.modem.device, { baudRate: 115200 }, async (err) =>
99 99 const commandsCount = commands.length;
100 100 // eslint-disable-next-line no-plusplus
101 101 for (let i = 0; i < commandsCount; i++) {
102   - writeToPortDelayed(commands[i], 2000);
  102 + // eslint-disable-next-line no-await-in-loop
  103 + await writeToPortDelayed(commands[i], 2000);
103 104 }
104 105 });
105 106