Skip to content

Commit 1612492

Browse files
authored
Fix Presentation format (#33)
1 parent 6c7e2f4 commit 1612492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nanoFramework.Device.Bluetooth/GenericAttributeProfile/GattLocalCharacteristic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ internal GattLocalCharacteristic(Guid characteristicUuid, GattLocalCharacteristi
9898
DataWriter dr = new DataWriter();
9999

100100
dr.WriteByte(gpf.FormatType);
101-
dr.WriteInt32(gpf.Exponent);
101+
dr.WriteByte((byte)gpf.Exponent);
102102
dr.WriteUInt16(gpf.Unit);
103103
dr.WriteByte(gpf.Namespace);
104104
dr.WriteUInt16(gpf.Description);

0 commit comments

Comments
 (0)