All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] time: fix byte position
@ 2012-07-05 17:37 João Paulo Rechi Vita
  2012-07-05 17:37 ` [PATCH BlueZ 2/2] time: fix daylight variable description João Paulo Rechi Vita
  2012-07-05 21:39 ` [PATCH BlueZ 1/2] time: fix byte position Anderson Lizardo
  0 siblings, 2 replies; 9+ messages in thread
From: João Paulo Rechi Vita @ 2012-07-05 17:37 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: João Paulo Rechi Vita

The position of the "Time Zone" and "Daylight Saving Time" fields on
the Local Time Information characteristic was inverted. This commit
fix their position.
---
 time/server.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/time/server.c b/time/server.c
index be6e196..ddf88ae 100644
--- a/time/server.c
+++ b/time/server.c
@@ -107,13 +107,13 @@ static uint8_t local_time_info_read(struct attribute *a,
 
 	tzset();
 
-	/* FIXME: POSIX "daylight" variable only indicates whether there is DST
-	 * for the local time or not. The offset is unknown. */
-	value[0] = daylight ? 0xff : 0x00;
-
 	/* Convert POSIX "timezone" (seconds West of GMT) to Time Profile
 	 * format (offset from UTC in number of 15 minutes increments). */
-	value[1] = (uint8_t) (-1 * timezone / (60 * 15));
+	value[0] = (uint8_t) (-1 * timezone / (60 * 15));
+
+	/* FIXME: POSIX "daylight" variable only indicates whether there is DST
+	 * for the local time or not. The offset is unknown. */
+	value[1] = daylight ? 0xff : 0x00;
 
 	attrib_db_update(adapter, a->handle, NULL, value, sizeof(value), NULL);
 
-- 
1.7.10.4


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

* [PATCH BlueZ 2/2] time: fix daylight variable description
  2012-07-05 17:37 [PATCH BlueZ 1/2] time: fix byte position João Paulo Rechi Vita
@ 2012-07-05 17:37 ` João Paulo Rechi Vita
  2012-07-05 17:50   ` Anderson Lizardo
  2012-07-05 21:39 ` [PATCH BlueZ 1/2] time: fix byte position Anderson Lizardo
  1 sibling, 1 reply; 9+ messages in thread
From: João Paulo Rechi Vita @ 2012-07-05 17:37 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: João Paulo Rechi Vita

---
 time/server.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/time/server.c b/time/server.c
index ddf88ae..a5f151e 100644
--- a/time/server.c
+++ b/time/server.c
@@ -111,8 +111,9 @@ static uint8_t local_time_info_read(struct attribute *a,
 	 * format (offset from UTC in number of 15 minutes increments). */
 	value[0] = (uint8_t) (-1 * timezone / (60 * 15));
 
-	/* FIXME: POSIX "daylight" variable only indicates whether there is DST
-	 * for the local time or not. The offset is unknown. */
+	/* FIXME: POSIX "daylight" variable only indicates if DST is used for
+	 * the local time or not. Both the offset and wheter it's currently
+	 * active is unknown. */
 	value[1] = daylight ? 0xff : 0x00;
 
 	attrib_db_update(adapter, a->handle, NULL, value, sizeof(value), NULL);
-- 
1.7.10.4


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

* Re: [PATCH BlueZ 2/2] time: fix daylight variable description
  2012-07-05 17:37 ` [PATCH BlueZ 2/2] time: fix daylight variable description João Paulo Rechi Vita
@ 2012-07-05 17:50   ` Anderson Lizardo
  2012-07-10 13:58     ` [PATCH BlueZ] " João Paulo Rechi Vita
  0 siblings, 1 reply; 9+ messages in thread
From: Anderson Lizardo @ 2012-07-05 17:50 UTC (permalink / raw)
  To: João Paulo Rechi Vita; +Cc: linux-bluetooth

Hi Joao,

On Thu, Jul 5, 2012 at 2:37 PM, João Paulo Rechi Vita
<jprvita@openbossa.org> wrote:
> -       /* FIXME: POSIX "daylight" variable only indicates whether there is DST
> -        * for the local time or not. The offset is unknown. */
> +       /* FIXME: POSIX "daylight" variable only indicates if DST is used for
> +        * the local time or not. Both the offset and wheter it's currently

small typo: wheter -> whether

> +        * active is unknown. */
>         value[1] = daylight ? 0xff : 0x00;

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil

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

* Re: [PATCH BlueZ 1/2] time: fix byte position
  2012-07-05 17:37 [PATCH BlueZ 1/2] time: fix byte position João Paulo Rechi Vita
  2012-07-05 17:37 ` [PATCH BlueZ 2/2] time: fix daylight variable description João Paulo Rechi Vita
@ 2012-07-05 21:39 ` Anderson Lizardo
  2012-07-10 14:03   ` Joao Paulo Rechi Vita
  1 sibling, 1 reply; 9+ messages in thread
From: Anderson Lizardo @ 2012-07-05 21:39 UTC (permalink / raw)
  To: João Paulo Rechi Vita; +Cc: linux-bluetooth

Hi Joao,

On Thu, Jul 5, 2012 at 2:37 PM, João Paulo Rechi Vita
<jprvita@openbossa.org> wrote:
> The position of the "Time Zone" and "Daylight Saving Time" fields on
> the Local Time Information characteristic was inverted. This commit
> fix their position.
> ---
>  time/server.c |   10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)

Patch looks good.

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil

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

* [PATCH BlueZ] time: fix daylight variable description
  2012-07-05 17:50   ` Anderson Lizardo
@ 2012-07-10 13:58     ` João Paulo Rechi Vita
  0 siblings, 0 replies; 9+ messages in thread
From: João Paulo Rechi Vita @ 2012-07-10 13:58 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: João Paulo Rechi Vita

---
 time/server.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/time/server.c b/time/server.c
index ddf88ae..d7bcf2d 100644
--- a/time/server.c
+++ b/time/server.c
@@ -111,8 +111,9 @@ static uint8_t local_time_info_read(struct attribute *a,
 	 * format (offset from UTC in number of 15 minutes increments). */
 	value[0] = (uint8_t) (-1 * timezone / (60 * 15));
 
-	/* FIXME: POSIX "daylight" variable only indicates whether there is DST
-	 * for the local time or not. The offset is unknown. */
+	/* FIXME: POSIX "daylight" variable only indicates if DST is used for
+	 * the local time or not. Both the offset and whether it's currently
+	 * active is unknown. */
 	value[1] = daylight ? 0xff : 0x00;
 
 	attrib_db_update(adapter, a->handle, NULL, value, sizeof(value), NULL);
-- 
1.7.10.4


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

* Re: [PATCH BlueZ 1/2] time: fix byte position
  2012-07-05 21:39 ` [PATCH BlueZ 1/2] time: fix byte position Anderson Lizardo
@ 2012-07-10 14:03   ` Joao Paulo Rechi Vita
  2012-07-19 14:55     ` Johan Hedberg
  0 siblings, 1 reply; 9+ messages in thread
From: Joao Paulo Rechi Vita @ 2012-07-10 14:03 UTC (permalink / raw)
  To: Anderson Lizardo; +Cc: linux-bluetooth

On Thu, Jul 5, 2012 at 6:39 PM, Anderson Lizardo
<anderson.lizardo@openbossa.org> wrote:
> Hi Joao,
>
> On Thu, Jul 5, 2012 at 2:37 PM, João Paulo Rechi Vita
> <jprvita@openbossa.org> wrote:
>> The position of the "Time Zone" and "Daylight Saving Time" fields on
>> the Local Time Information characteristic was inverted. This commit
>> fix their position.
>> ---
>>  time/server.c |   10 +++++-----
>>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> Patch looks good.
>

Is there something preventing this patches to being merged? I see
Gustavo is already sending the directory move patches, and this will
probably not apply after his patches.

-- 
João Paulo Rechi Vita
Openbossa Labs - INdT

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

* Re: [PATCH BlueZ 1/2] time: fix byte position
  2012-07-10 14:03   ` Joao Paulo Rechi Vita
@ 2012-07-19 14:55     ` Johan Hedberg
  2012-07-19 17:46       ` João Paulo Rechi Vita
  0 siblings, 1 reply; 9+ messages in thread
From: Johan Hedberg @ 2012-07-19 14:55 UTC (permalink / raw)
  To: Joao Paulo Rechi Vita; +Cc: Anderson Lizardo, linux-bluetooth

Hi,

On Tue, Jul 10, 2012, Joao Paulo Rechi Vita wrote:
> On Thu, Jul 5, 2012 at 6:39 PM, Anderson Lizardo
> <anderson.lizardo@openbossa.org> wrote:
> > Hi Joao,
> >
> > On Thu, Jul 5, 2012 at 2:37 PM, João Paulo Rechi Vita
> > <jprvita@openbossa.org> wrote:
> >> The position of the "Time Zone" and "Daylight Saving Time" fields on
> >> the Local Time Information characteristic was inverted. This commit
> >> fix their position.
> >> ---
> >>  time/server.c |   10 +++++-----
> >>  1 file changed, 5 insertions(+), 5 deletions(-)
> >
> > Patch looks good.
> 
> Is there something preventing this patches to being merged? I see
> Gustavo is already sending the directory move patches, and this will
> probably not apply after his patches.

No particular reason why they weren't applied before the directory
restructuring. Could you please resend them to match the latest tree?

Johan

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

* [PATCH BlueZ 1/2] time: fix byte position
  2012-07-19 14:55     ` Johan Hedberg
@ 2012-07-19 17:46       ` João Paulo Rechi Vita
  2012-07-23 21:33         ` Johan Hedberg
  0 siblings, 1 reply; 9+ messages in thread
From: João Paulo Rechi Vita @ 2012-07-19 17:46 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: João Paulo Rechi Vita

The position of the "Time Zone" and "Daylight Saving Time" fields on
the Local Time Information characteristic was inverted. This commit
fix their position.
---
 profiles/time/server.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/profiles/time/server.c b/profiles/time/server.c
index be6e196..ddf88ae 100644
--- a/profiles/time/server.c
+++ b/profiles/time/server.c
@@ -107,13 +107,13 @@ static uint8_t local_time_info_read(struct attribute *a,
 
 	tzset();
 
-	/* FIXME: POSIX "daylight" variable only indicates whether there is DST
-	 * for the local time or not. The offset is unknown. */
-	value[0] = daylight ? 0xff : 0x00;
-
 	/* Convert POSIX "timezone" (seconds West of GMT) to Time Profile
 	 * format (offset from UTC in number of 15 minutes increments). */
-	value[1] = (uint8_t) (-1 * timezone / (60 * 15));
+	value[0] = (uint8_t) (-1 * timezone / (60 * 15));
+
+	/* FIXME: POSIX "daylight" variable only indicates whether there is DST
+	 * for the local time or not. The offset is unknown. */
+	value[1] = daylight ? 0xff : 0x00;
 
 	attrib_db_update(adapter, a->handle, NULL, value, sizeof(value), NULL);
 
-- 
1.7.10.4


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

* Re: [PATCH BlueZ 1/2] time: fix byte position
  2012-07-19 17:46       ` João Paulo Rechi Vita
@ 2012-07-23 21:33         ` Johan Hedberg
  0 siblings, 0 replies; 9+ messages in thread
From: Johan Hedberg @ 2012-07-23 21:33 UTC (permalink / raw)
  To: João Paulo Rechi Vita; +Cc: linux-bluetooth

Hi João Paulo,

On Thu, Jul 19, 2012, João Paulo Rechi Vita wrote:
> The position of the "Time Zone" and "Daylight Saving Time" fields on
> the Local Time Information characteristic was inverted. This commit
> fix their position.
> ---
>  profiles/time/server.c |   10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)

Applied. Thanks.

Johan

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

end of thread, other threads:[~2012-07-23 21:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-05 17:37 [PATCH BlueZ 1/2] time: fix byte position João Paulo Rechi Vita
2012-07-05 17:37 ` [PATCH BlueZ 2/2] time: fix daylight variable description João Paulo Rechi Vita
2012-07-05 17:50   ` Anderson Lizardo
2012-07-10 13:58     ` [PATCH BlueZ] " João Paulo Rechi Vita
2012-07-05 21:39 ` [PATCH BlueZ 1/2] time: fix byte position Anderson Lizardo
2012-07-10 14:03   ` Joao Paulo Rechi Vita
2012-07-19 14:55     ` Johan Hedberg
2012-07-19 17:46       ` João Paulo Rechi Vita
2012-07-23 21:33         ` Johan Hedberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.