Skip to content

Commit

Permalink
Merge pull request #15 from highvolt-dev/bugfix/arcadyan_enbid_calcul…
Browse files Browse the repository at this point in the history
…ation

fixes #14 - calculate eNB ID from Arcadyan CGI using base 10 after fi…
  • Loading branch information
highvolt-dev committed May 8, 2022
2 parents 6af3474 + 07529df commit 5fd3ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ function App() {
const json = await res.json();

const data = {
eNBID: Math.floor(parseInt(json.cell['4g'].ecgi.substring(6), 16) / 256),
eNBID: Math.floor(parseInt(json.cell['4g'].ecgi.substring(6)) / 256),
CellId: json.cell['4g'].sector.cid,
MCC: json.cell['4g'].mcc,
MNC: json.cell['4g'].mnc
Expand Down

0 comments on commit 5fd3ffd

Please sign in to comment.