Skip to content

Commit 61ea718

Browse files
committed
eliminate a bit more code if the DVI/hstx pins aren't defined
1 parent 8be1681 commit 61ea718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/raspberrypi/common-hal/picodvi/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
#include "supervisor/port_heap.h"
1818

1919
void picodvi_autoconstruct(void) {
20+
#if defined(DEFAULT_DVI_BUS_CLK_DP)
2021
if (get_safe_mode() != SAFE_MODE_NONE) {
2122
return;
2223
}
23-
#if defined(DEFAULT_DVI_BUS_CLK_DP)
2424
// check if address 0x50 is live on the I2C bus -- return if not
2525
busio_i2c_obj_t *i2c = common_hal_board_create_i2c(0);
2626
if (!i2c) {

0 commit comments

Comments
 (0)