Fix endian conversion for sensor_id in encode_sensor_event_data

Previously this was doing a htole32 on a uint16_t which was causing
undesirable results. This commit changes this conversion to htole16.

Tested: sensor ID's for the OCC targets were check before and after
this change on HW. Without this change all state sensors were pointing
to OCC0, which this change state sensors correctly pointed to OCC0
and OCC1.

Change-Id: I46b2a94d6ccbcb426d64db934a50563aaac78bcb
Signed-off-by: Christian Geddes <crgeddes@us.ibm.com>
diff --git a/libpldm/platform.c b/libpldm/platform.c
index d935edd..7bcd502 100644
--- a/libpldm/platform.c
+++ b/libpldm/platform.c
@@ -716,7 +716,7 @@
 		return PLDM_ERROR_INVALID_LENGTH;
 	}
 
-	event_data->sensor_id = htole32(sensor_id);
+	event_data->sensor_id = htole16(sensor_id);
 	event_data->sensor_event_class_type = sensor_event_class;
 
 	struct pldm_sensor_event_state_sensor_state *const state_data =