Else
If AStream.IsInitialized Then AStream.Close
'prefix mode! Change to non-prefix mode if communicating with non-B4X device.
'prefix mode! Change to non-prefix mode if communicating with non-B4X device.
'AStream.InitializePrefix(serial.InputStream, False, serial.OutputStream, "astream")
'''AStream.InitializePrefix(serial.InputStream, False, serial.OutputStream, "astream") '***** COMMENT OUT THIS LINE AND *****
AStream.Initialize(serial.InputStream, serial.OutputStream, "astream") '***** REPLACE IT WITH THIS LINE *****
StartActivity(control)
End If