Skip to content

Commit ce0393c

Browse files
committed
pbio/platform/nxt: Do not log to screen in i2c driver.
Keep a placeholder so that debug logging can be put back later. Refs: pybricks/support#2425
1 parent 2e0ff53 commit ce0393c

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

  • lib/pbio/platform/nxt/nxos/drivers

lib/pbio/platform/nxt/nxos/drivers/i2c.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
#include <stdint.h>
88
#include <string.h>
99

10-
#include <pbio/image.h>
11-
12-
#include <pbdrv/display.h>
13-
1410
#include <at91sam7s256.h>
1511

1612
#define I2C_LOG false
@@ -174,18 +170,14 @@ void nx_i2c_init(void) {
174170
static void i2c_log(const char *s)
175171
{
176172
if (I2C_LOG) {
177-
pbio_image_t *display = pbdrv_display_get_image();
178-
pbio_image_print0(display, s);
179-
pbdrv_display_update();
173+
/* Placeholder for future log implementation. */
180174
}
181175
}
182176

183177
static void i2c_log_uint(uint32_t val)
184178
{
185179
if (I2C_LOG) {
186-
pbio_image_t *display = pbdrv_display_get_image();
187-
pbio_image_print_uint(display, val);
188-
pbdrv_display_update();
180+
/* Placeholder for future log implementation. */
189181
}
190182
}
191183

0 commit comments

Comments
 (0)