mbed RPC

Dependents:   WiFlyHTTPServerSample MultiThreadingHTTPServer HTTP-Server EthHTTPServer ... more

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Thu Jun 18 07:30:13 2015 +0100
Parent:
9:d8113058854e
Child:
11:325e3da833e1
Commit message:
Synchronized with git revision 954ce62223e1ed87db126e937341e8218e13554c

Full URL: https://github.com/mbedmicro/mbed/commit/954ce62223e1ed87db126e937341e8218e13554c/

Refactor gcc arm exporter templates

Changed in this revision

rpc.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/rpc.cpp	Mon Jun 15 16:27:17 2015 +0000
+++ b/rpc.cpp	Thu Jun 18 07:30:13 2015 +0100
@@ -146,9 +146,9 @@
         /* Look through the methods for the one whose name matches */
         while (true) {
             for (; cur_method->name != NULL; cur_method++) {
-                r.putData<const char*>(cur_method->name);
                 if (strcmp(cur_method->name, args.method_name) == 0) {
                     (cur_method->method_caller)(p, &args, &r);
+                    r.putData<const char*>(cur_method->name);
                     return true;
                 }
             }