mirror of https://github.com/ARMmbed/mbed-os.git
commit
3697e701cb
|
@ -146,6 +146,7 @@ bool RPC::call(const char *request, char *reply) {
|
||||||
/* Look through the methods for the one whose name matches */
|
/* Look through the methods for the one whose name matches */
|
||||||
while (true) {
|
while (true) {
|
||||||
for (; cur_method->name != NULL; cur_method++) {
|
for (; cur_method->name != NULL; cur_method++) {
|
||||||
|
r.putData<const char*>(cur_method->name);
|
||||||
if (strcmp(cur_method->name, args.method_name) == 0) {
|
if (strcmp(cur_method->name, args.method_name) == 0) {
|
||||||
(cur_method->method_caller)(p, &args, &r);
|
(cur_method->method_caller)(p, &args, &r);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue