Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Azq2 committed Jun 17, 2024
1 parent 71fe7d1 commit d856a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ async function getPhoneInfo(cgsn) {
response = await atc.sendCommand("AT+CGMR");
if (!response.success)
return null;
phoneSwVersion = response.lines[0];
phoneSwVersion = response.lines[0].match(/^\s*(\d+)/)[0];

console.log(`Detected phone ${phoneVendor} ${phoneModel}v${phoneSwVersion}`);

Expand Down

0 comments on commit d856a2b

Please sign in to comment.