فهرست منبع

Cleanup: Avoid warnings from compiler and Doxygen

Minor cleanup to avoid some warnings.

Signed-off-by: Stefan Mätje <stefan.maetje@esd.eu>
Stefan Mätje 6 سال پیش
والد
کامیت
219b27ddbf
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      source/src/cip/cipidentity.c
  2. 2 2
      source/src/opener_api.h

+ 1 - 1
source/src/cip/cipidentity.c

@@ -47,7 +47,7 @@ CipRevision revision_ = { OPENER_DEVICE_MAJOR_REVISION,
 CipWord status_ = 0; /**< Attribute 5: Status */
 CipUdint serial_number_ = 0; /**< Attribute 6: Serial Number, has to be set prior to OpENer initialization */
 CipShortString product_name_ = { sizeof(OPENER_DEVICE_NAME) - 1,
-                                (const EipByte *)OPENER_DEVICE_NAME }; /**< Attribute 7: Product Name */
+                                (EipByte *)OPENER_DEVICE_NAME }; /**< Attribute 7: Product Name */
 CipUsint g_state = 255;
 
 /** Private functions, sets the devices serial number

+ 2 - 2
source/src/opener_api.h

@@ -60,9 +60,9 @@ void SetDeviceSerialNumber(const EipUint32 serial_number);
 /** @ingroup CIP_API
  * @brief Set the current status of the device.
  *
- * @param device_status the new status value
+ * @param status new Identity object's Status value
  */
-void SetDeviceStatus(const EipUint16 device_status);
+void SetDeviceStatus(const EipUint16 status);
 
 /** @ingroup CIP_API
  * @brief Initialize and setup the CIP-stack