/// <summary> /// This function enables the program to test if a output device is busy on all ports on all bricks /// </summary> public async Task <bool> IsBusy(OutputPortFlag portFlag = OutputPortFlag.All) { for (int i = 0; i < 4; i++) { bool result = await OutputMethods.IsBusy(Brick.Socket, (ChainLayer)i, portFlag); if (result) { return(true); } } return(false); }
/// <summary> /// This function enables the program to test if a output device is busy. /// </summary> protected async Task <bool> IsBusy() { return(await OutputMethods.IsBusy(Socket, Layer, PortFlag)); }
/// <summary> /// This function enables the program to test if the motors are busy. /// </summary> public async Task <bool> IsBusy() { return(await OutputMethods.IsBusy(Brick.Socket, Layer, PortFlag)); }