Skip to content

Commit

Permalink
Fixed the updater based on SOC
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioFPVdev authored and MarioFPVdev committed Oct 31, 2024
1 parent 874f867 commit eaf7add
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 12 deletions.
25 changes: 13 additions & 12 deletions Configurator.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions Configurator.vb
Original file line number Diff line number Diff line change
Expand Up @@ -3271,5 +3271,33 @@ err1:
End If
End Sub

Private Sub cmbVersion_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cmbVersion.SelectedIndexChanged
If cmbVersion.SelectedItem.ToString.Contains("ssc338q") Then
txtSOC.Text = "ssc338q"
btnOfflinefw.Text = "Update Camera"
ElseIf cmbVersion.SelectedItem.ToString.Contains("ssc30kq") Then
txtSOC.Text = "ssc30kq"
btnOfflinefw.Text = "Update Camera"
ElseIf cmbVersion.SelectedItem.ToString.Contains("hi3536dv100") Then
txtSOC.Text = "hi3536dv100"
btnOfflinefw.Text = "Update NVR"
ElseIf cmbVersion.SelectedItem.ToString.Contains("gk7205v200") Then
txtSOC.Text = "gk7205v200"
btnOfflinefw.Text = "Update Camera"
ElseIf cmbVersion.SelectedItem.ToString.Contains("gk7205v210") Then
txtSOC.Text = "gk7205v210"
btnOfflinefw.Text = "Update Camera"
ElseIf cmbVersion.SelectedItem.ToString.Contains("gk7205v300") Then
txtSOC.Text = "gk7205v300"
btnOfflinefw.Text = "Update Camera"
ElseIf cmbVersion.SelectedItem.ToString.Contains("hi3516ev300") Then
txtSOC.Text = "hi3516ev300"
btnOfflinefw.Text = "Update Camera"
ElseIf cmbVersion.SelectedItem.ToString.Contains("hi3516ev200") Then
txtSOC.Text = "hi3516ev200"
btnOfflinefw.Text = "Update Camera"
End If
End Sub

#End Region
End Class

0 comments on commit eaf7add

Please sign in to comment.