• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pybricks / pybricks-micropython / 20653956544

30 Dec 2025 06:57PM UTC coverage: 51.097% (+0.04%) from 51.058%
20653956544

push

github

laurensvalk
pbio/drv/bluetooth_cc2640: Fix failed read not raising.

When pairing with an Xbox Controller, reading a specific characteristic will fail if the controller was never paired. This is our way to find out.

But the error was not raised, so it would wait indefinitely on the next discover command that would not complete.

4634 of 9069 relevant lines covered (51.1%)

14840074.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/pbio/src/debug.c
1
// SPDX-License-Identifier: MIT
2
// Copyright (c) 2021-2025 The Pybricks Authors
3

4
#include <pbdrv/config.h>
5

6
#include <pbdrv/usb.h>
7
#include <pbdrv/../../drv/uart/uart_debug_first_port.h>
8

9
#include <pbio/debug.h>
10

11
void pbio_debug_va(const char *format, va_list args) {
×
12
    #if PBDRV_CONFIG_USB_SIMULATION
13
    vprintf(format, args);
14
    return;
15
    #endif
16

17
    char buf[256];
18
    size_t len = vsnprintf(buf, sizeof(buf), format, args);
19
    pbdrv_usb_debug_print(buf, len);
20
    pbdrv_uart_debug_print(buf, len);
21
}
22

23
void pbio_debug(const char *format, ...) {
×
24
    va_list args;
25
    va_start(args, format);
×
26
    pbio_debug_va(format, args);
×
27
    va_end(args);
×
28
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc