File tree Expand file tree Collapse file tree
ShimmerDriver/src/main/java/com/shimmerresearch/driver Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,7 +147,8 @@ public abstract class ShimmerDevice extends BasicProcessWithCallBack implements
147147 protected boolean mIsStreaming = false ; // This is used to monitor whether the device is in streaming mode
148148 protected boolean mIsInitialised = false ;
149149 private boolean mIsDocked = false ;
150- private boolean mIsUsbPluggedIn = false ;
150+ private boolean mIsUsbPluggedIn = false ;
151+ private boolean mIsDockCommsSuccessful = false ;
151152 public boolean mIsUsbDfuMode = false ;
152153 protected boolean mHaveAttemptedToReadConfig = false ;
153154
@@ -4787,4 +4788,12 @@ public String getRadioModel() {
47874788 return "" ;
47884789 }
47894790
4791+ public boolean isDockCommsSuccessful () {
4792+ return mIsDockCommsSuccessful ;
4793+ }
4794+
4795+ public void setDockCommsSuccessful (boolean isDockCommsSuccessful ) {
4796+ mIsDockCommsSuccessful = isDockCommsSuccessful ;
4797+ }
4798+
47904799}
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ public class ShimmerShell extends ShimmerDevice {
2626 /** * */
2727 private static final long serialVersionUID = 3505947289367382624L ;
2828
29+ public String macIDParsed = "" ;
30+
2931 public ShimmerShell () {
3032 setFirstDockRead ();
3133 }
@@ -147,5 +149,23 @@ protected void dataHandler(ObjectCluster ojc) {
147149 // TODO Auto-generated method stub
148150
149151 }
152+
153+ @ Override
154+ public String getMacIdFromUartParsed () {
155+ if (!macIDParsed .isEmpty ()) {
156+ return macIDParsed ;
157+ } else {
158+ return super .getMacIdFromUartParsed ();
159+ }
160+ }
161+
162+ @ Override
163+ public String getMacIdParsed () {
164+ if (!macIDParsed .isEmpty ()) {
165+ return macIDParsed ;
166+ } else {
167+ return super .getMacIdParsed ();
168+ }
169+ }
150170
151171}
You can’t perform that action at this time.
0 commit comments