Bladeren bron

Improve documentation of modbus_report_slave_id

Inspired by
https://github.com/remakeelectric/libmodbus/commit/56b2526f5140a7e7efd0a59d5f2e5fb200f5a632
Stéphane Raimbault 9 jaren geleden
bovenliggende
commit
2689016a9b
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      doc/modbus_report_slave_id.txt

+ 2 - 1
doc/modbus_report_slave_id.txt

@@ -26,7 +26,8 @@ The response stored in _dest_ contains:
 * additional data specific to each controller. For example, libmodbus returns
   the version of the library as a string.
 
-The function write at most _max_dest_ bytes from the response to _dest_.
+The function writes at most _max_dest_ bytes from the response to _dest_ so
+you must take to allocate enough memory to store the results.
 
 RETURN VALUE
 ------------