Commit ab2ccd9a71fb9e17444537ea3bc5acc19568d8e4

Authored by Adhidarma Hadiwinoto
1 parent 29dfb98c3f
Exists in master

Ubah urutan log

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

... ... @@ -339,8 +339,8 @@ function executeUSSD(code, includeCUSD2) {
339 339 await mutex.setLockWaitForCommand();
340 340  
341 341 if (includeCUSD2 === -1 || includeCUSD2 === 2) {
342   - logger.info('Terminating existing USSD session');
343 342 await mutex.setLockWaitForSubCommand();
  343 + logger.info('Terminating existing USSD session');
344 344 port.pipe(parserCUSD2);
345 345 await writeToPort('AT+CUSD=2\r');
346 346 }
... ... @@ -350,8 +350,8 @@ function executeUSSD(code, includeCUSD2) {
350 350 await writeToPort(`AT+CUSD=1,"${code}",15\r`);
351 351  
352 352 if (includeCUSD2 === 1 || includeCUSD2 === 2) {
353   - logger.info('Terminating existing USSD session');
354 353 await mutex.setLockWaitForSubCommand();
  354 + logger.info('Terminating existing USSD session');
355 355 port.pipe(parserCUSD2);
356 356 await writeToPort('AT+CUSD=2\r');
357 357 }