Skip to content

Commit faff703

Browse files
committed
restricting ftms code enums to byte
1 parent 396614c commit faff703

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

FTMS.NET.Contracts/Control/EControlOpCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace FTMS.NET.Control;
2-
public enum EControlOpCode
2+
public enum EControlOpCode : byte
33
{
44
RequestControl = 0x00,
55
Reset = 0x01,

FTMS.NET.Contracts/Control/EControlResultCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace FTMS.NET.Control;
2-
public enum EControlResultCode
2+
public enum EControlResultCode : byte
33
{
44
Success = 0x01,
55
OpCodeNotSupported = 0x02,

FTMS.NET.Contracts/Control/EStopOrPauseCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace FTMS.NET.Control;
2-
public enum EStopOrPauseCode
2+
public enum EStopOrPauseCode : byte
33
{
44
Stop = 0x01,
55
Pause = 0x02

FTMS.NET.Contracts/State/ESpinDownState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace FTMS.NET.State;
2-
public enum ESpinDownState
2+
public enum ESpinDownState : byte
33
{
44
SpinDownRequested = 0x01,
55
Success = 0x02,

FTMS.NET.Contracts/State/EStateOpCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace FTMS.NET.State;
2-
public enum EStateOpCode
2+
public enum EStateOpCode : byte
33
{
44
Reset = 0x01,
55
FitnessMachineStoppedOrPausedByTheUser = 0x02,

FTMS.NET.Contracts/State/ETrainingState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace FTMS.NET.State;
2-
public enum ETrainingState
2+
public enum ETrainingState : byte
33
{
44
Other = 0x00,
55
Idle = 0x01,

0 commit comments

Comments
 (0)