From f6c7cae6615b0abb9b7a4028436a9c4bc25a512f Mon Sep 17 00:00:00 2001 From: Gilles Boccon-Gibod Date: Fri, 22 Sep 2023 10:33:36 -0700 Subject: [PATCH] use correct own_address_type when restarting advertising --- bumble/device.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bumble/device.py b/bumble/device.py index 9a784e72..57ecc766 100644 --- a/bumble/device.py +++ b/bumble/device.py @@ -2758,7 +2758,9 @@ class Device(CompositeEventEmitter): self.abort_on( 'flush', self.start_advertising( - advertising_type=self.advertising_type, auto_restart=True + advertising_type=self.advertising_type, + own_address_type=self.advertising_own_address_type, + auto_restart=True, ), )