Skip to content

Commit 2e0ff53

Browse files
committed
pbio/platform/nxt: Do not display error message on assertion failure.
Synchronous screen update support will be removed. Refs: pybricks/support#2425
1 parent 855e3de commit 2e0ff53

1 file changed

Lines changed: 3 additions & 23 deletions

File tree

lib/pbio/platform/nxt/nxos/assert.c

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,11 @@
66
* the terms of the GNU Public License (GPL) version 2.
77
*/
88

9-
#include <stdbool.h>
10-
#include <string.h>
11-
12-
#include <pbio/image.h>
13-
14-
#include <pbdrv/reset.h>
15-
#include <pbdrv/display.h>
16-
17-
#include "nxos/util.h"
18-
#include "nxos/drivers/systick.h"
19-
209
#include "nxos/assert.h"
2110

22-
#include "../../../drv/display/display_nxt.h"
23-
2411
void nx_assert_error(const char *file, const int line,
2512
const char *expr, const char *msg) {
26-
const char *basename = strrchr(file, '/');
27-
basename = basename ? basename+1 : file;
28-
29-
pbio_image_t *display = pbdrv_display_get_image();
30-
pbio_image_fill(display, 0);
31-
pbio_image_print0(display, "** Assertion **\n");
32-
pbio_image_printf(display, "%s:%d\n", basename, line);
33-
pbio_image_printf(display, "%s\n", expr);
34-
pbio_image_printf(display, "%s\n", msg);
35-
pbdrv_display_nxt_sync_refresh();
13+
while (1)
14+
{
15+
}
3616
}

0 commit comments

Comments
 (0)