Persist Full Companion BLE subscriptions across reboot
This commit is contained in:
1 parent
72982fa55f
commit
bb58b40d9c
5 files changed
+206
-16
No files matched your search
@@ -13,9 +13,10 @@ spec.loader.exec_module(module)
|
||||
|
||||
|
||||
class Nrf52BleCccdFixTest(unittest.TestCase):
|
||||
def test_only_full_companions_skip_persistence(self):
|
||||
def test_full_companions_also_persist_subscriptions(self):
|
||||
patched = module.patched_source("before\n" + module.OLD_SAVE + "after\n")
|
||||
self.assertIn("!defined(COMPANION_RADIO_FULL) || !COMPANION_RADIO_FULL", patched)
|
||||
self.assertNotIn("#if", patched)
|
||||
self.assertIn("SoftDeviceSvcCompat.h", patched)
|
||||
self.assertIn("conn->saveCccd();", patched)
|
||||
self.assertEqual(module.patched_source(patched), patched)
|
||||
|
||||
|
||||
Reference in new issue
Block a user