Skip to content

Commit 2250a9e

Browse files
committed
u8g2: use libtock exists() check instead of syscall
1 parent 9a543bb commit 2250a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

u8g2/u8g2-tock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static uint8_t u8x8_d_ssd1306_tock(u8x8_t *u8x8,
7575
// Initialize the u8g2 library for Tock use. Call this before using the rest of
7676
// the library.
7777
int u8g2_tock_init(u8g2_t *u8g2) {
78-
if (!driver_exists(DRIVER_NUM_SCREEN)) {
78+
if (!libtocksync_screen_exists()) {
7979
return -1;
8080
}
8181

0 commit comments

Comments
 (0)