On Fri, 5 Apr 2013, Phil Dibowitz wrote:
Reading config: 99% 1664 KiBReading config: 99% 1664 KiBSuccess!
Are you talking about the fact that it goes to 99% and stays there?
Unfortunately, there isn't really anything we can do about that because we
don't actually know how much data we are going to receive.
No I mean we read from the config up to 1664k, then DON"T send a newline then
apparently "read" again (write to file)?
OK, here's a patch for sending a "done" when we're done. The second read
is necessary since we don't know the config size at the beginning.
Fix zwave config dump output - make a "done" callback when we're done reading
the config.
Signed-off-by: Scott Talbert <s...@techie.net>
Index: libconcord/remote_z.cpp
===================================================================
RCS file: /cvsroot/concordance/concordance/libconcord/remote_z.cpp,v
retrieving revision 1.25.2.19
diff -u -p -r1.25.2.19 remote_z.cpp
--- libconcord/remote_z.cpp 3 Apr 2013 06:13:56 -0000 1.25.2.19
+++ libconcord/remote_z.cpp 5 Apr 2013 22:15:45 -0000
@@ -1074,6 +1074,11 @@ int CRemoteZ_HID::ReadRegion(uint8_t reg
/* Return TCP state to initial conditions */
SYN_ACKED = false;
+ if (cb) {
+ cb(cb_stage, cb_count++, data_read, data_read,
+ LC_CB_COUNTER_TYPE_BYTES, cb_arg, NULL);
+ }
+
return 0;
}
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel