From fe0eac318e5b1c26a5af1ef3bf6c2daf37cd80b8 Mon Sep 17 00:00:00 2001
From: Florian Pose <fp@igh-essen.com>
Date: Wed, 21 Jun 2006 09:09:55 +0000
Subject: [PATCH] Minor changes.

---
 include/ecrt.h   | 2 ++
 master/mailbox.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/ecrt.h b/include/ecrt.h
index 8416c172..0f1a819f 100644
--- a/include/ecrt.h
+++ b/include/ecrt.h
@@ -145,6 +145,8 @@ int ecrt_domain_state(ec_domain_t *domain);
  *  Slave Methods
  *****************************************************************************/
 
+/* there SDO functions are deprecated! */
+
 int ecrt_slave_sdo_read_exp8(ec_slave_t *slave, uint16_t sdo_index,
                               uint8_t sdo_subindex, uint8_t *value);
 int ecrt_slave_sdo_read_exp16(ec_slave_t *slave, uint16_t sdo_index,
diff --git a/master/mailbox.c b/master/mailbox.c
index 8e62efdf..ad4c1bcc 100644
--- a/master/mailbox.c
+++ b/master/mailbox.c
@@ -79,7 +79,7 @@ uint8_t *ec_slave_mbox_prepare_send(ec_slave_t *slave, /**< slave */
 
     EC_WRITE_U16(command->data,     size); // mailbox service data length
     EC_WRITE_U16(command->data + 2, slave->station_address); // station address
-    EC_WRITE_U8 (command->data + 4, 0x00); // hhannel & priority
+    EC_WRITE_U8 (command->data + 4, 0x00); // channel & priority
     EC_WRITE_U8 (command->data + 5, type); // underlying protocol type
 
     return command->data + 6;
-- 
GitLab