/// <summary> /// Initializes the model. /// </summary> /// <remarks> /// The initialization includes initializing the board. /// </remarks> /// <returns></returns> public async Task <bool> Initialize(string port) { bool bResult = false; try { _motorBoard.Initialize(port); bResult = true; } catch (Exception /*ex*/) { bResult = false; } return(bResult); }
/// <summary> /// Initializes the model. /// </summary> /// <remarks> /// The initialization includes initializing the board. /// </remarks> /// <returns></returns> public async Task <bool> Initialize(string port) { bool bResult = false; try { _motorBoard.Initialize(port); bResult = true; } catch (Exception ex) { logger.Debug("motorBoardModel::Initialize() Caught an exception: {0}", ex.Message); bResult = false; } return(bResult); }