     
     public static func == (lhs: GATTBootMouseInputReport, rhs: GATTBootMouseInputReport) -> Bool {
         
-        return lhs.value == rhs.value
+        return lhs.rawValue == rhs.rawValue
     }
 }
 

 
 The Boot Mouse Input Report characteristic is used to transfer fixed format and length Input Report data between a HID Host operating in Boot Protocol Mode and a HID Service corresponding to a boot mouse.
 */
public struct GATTBootMouseInputReport: GATTCharacteristic {
    
    internal static let length = MemoryLayout<UInt8>.size
    
    public static var uuid: BluetoothUUID { return .bootMouseInputReport }
    
    public var value: UInt8
    
    public init(value: UInt8) {
        
        self.value = value
    }
    
    public init?(data: Data) {

        guard data.count == type(of: self).length
            else { return nil }
        
        self.init(rawValue: data[0])
    }
    
    public var data: Data {
        
        return Data([rawValue])
    }
}

