Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] android/client: Allow empty string for dial command
@ 2014-11-03 12:36 Lukasz Rymanowski
  2014-11-03 13:43 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Lukasz Rymanowski @ 2014-11-03 12:36 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Lukasz Rymanowski

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] android/client: Allow empty string for dial command
  2014-11-03 12:36 [PATCH] android/client: Allow empty string for dial command Lukasz Rymanowski
@ 2014-11-03 13:43 ` Szymon Janc
  0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2014-11-03 13:43 UTC (permalink / raw)
  To: Lukasz Rymanowski; +Cc: linux-bluetooth

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-03 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-03 12:36 [PATCH] android/client: Allow empty string for dial command Lukasz Rymanowski
2014-11-03 13:43 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox