2014-11-03 12:36:18

by Lukasz Rymanowski

[permalink] [raw]
Subject: [PATCH] android/client: Allow empty string for dial command

Empty string is used for redial command
---
android/client/if-hf-client.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/android/client/if-hf-client.c b/android/client/if-hf-client.c
index 1108639..a837401 100644
--- a/android/client/if-hf-client.c
+++ b/android/client/if-hf-client.c
@@ -533,7 +533,8 @@ static void dial_p(int argc, const char **argv)

/* number string */
if (argc <= 2) {
- haltest_error("No number specified\n");
+ haltest_info("Number not specified. Redial\n");
+ EXEC(if_hf_client->dial, NULL);
return;
}

--
1.8.4



2014-11-03 13:43:34

by Szymon Janc

[permalink] [raw]
Subject: Re: [PATCH] android/client: Allow empty string for dial command

Hi Ɓukasz,

On Monday 03 of November 2014 13:36:18 Lukasz Rymanowski wrote:
> Empty string is used for redial command
> ---
> android/client/if-hf-client.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/android/client/if-hf-client.c b/android/client/if-hf-client.c
> index 1108639..a837401 100644
> --- a/android/client/if-hf-client.c
> +++ b/android/client/if-hf-client.c
> @@ -533,7 +533,8 @@ static void dial_p(int argc, const char **argv)
>
> /* number string */
> if (argc <= 2) {
> - haltest_error("No number specified\n");
> + haltest_info("Number not specified. Redial\n");
> + EXEC(if_hf_client->dial, NULL);
> return;
> }
>

Applied, thanks.

--
Best regards,
Szymon Janc