Skip to content

Commit

Permalink
Fix a bug with displaying the Sector ID for the LTE Cellular Calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrowlands committed Dec 12, 2024
1 parent 9d365cb commit f992847
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ fun LteCalculators(viewModel: CalculatorViewModel) {
// 4G LTE Cell ID calculator
CardItem {
Column {
val lteSectorIdOutput by viewModel.lteSectorIdOutput.collectAsState()
val lteCidError by viewModel.lteCidError.collectAsState()
val collectAsState by viewModel.enbIdOutput.collectAsState()

TitleText(text = "Cell ID to eNB ID and Sector ID")

Expand All @@ -232,11 +234,11 @@ fun LteCalculators(viewModel: CalculatorViewModel) {
)
Spacer(modifier = Modifier.height(6.dp))
Text(
"eNodeB ID: ${viewModel.enbIdOutput.collectAsState().value}",
"eNodeB ID: $collectAsState",
modifier = Modifier.padding(start = 8.dp)
)
Text(
"Sector ID: ${viewModel.lteSectorIdOutput.collectAsState().value}",
"Sector ID: $lteSectorIdOutput",
modifier = Modifier.padding(start = 8.dp)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class CalculatorViewModel : ViewModel() {
val enbIdOutput: StateFlow<String> = _enbIdOutput.asStateFlow()

private val _lteSectorIdOutput = MutableStateFlow("")
val lteSectorIdOutput: StateFlow<String> = _nrSectorIdOutput.asStateFlow()
val lteSectorIdOutput: StateFlow<String> = _lteSectorIdOutput.asStateFlow()

private val _pssOutput = MutableStateFlow("")
val pssOutput: StateFlow<String> = _pssOutput.asStateFlow()
Expand Down

0 comments on commit f992847

Please sign in to comment.