diff --git a/SampleCode-V5/android-sdk-v5-sample/module-common/src/main/java/dji/sampleV5/modulecommon/pages/DiagnosticFragment.kt b/SampleCode-V5/android-sdk-v5-sample/module-common/src/main/java/dji/sampleV5/modulecommon/pages/DiagnosticFragment.kt index 152eb2a0c..953af0b42 100644 --- a/SampleCode-V5/android-sdk-v5-sample/module-common/src/main/java/dji/sampleV5/modulecommon/pages/DiagnosticFragment.kt +++ b/SampleCode-V5/android-sdk-v5-sample/module-common/src/main/java/dji/sampleV5/modulecommon/pages/DiagnosticFragment.kt @@ -35,7 +35,7 @@ class DiagnosticFragment : DJIFragment() { updateDiagnosticMsg() } - diagnosticVm.currentDeviceStatus.observe(viewLifecycleOwner) { + diagnosticVm.lastDeviceStatus.observe(viewLifecycleOwner) { updateDiagnosticMsg() } }