From 1af4aa389022c506c696527aebf9ccd87bf7e12b Mon Sep 17 00:00:00 2001 From: Stefan Eichenberger Date: Wed, 1 Mar 2017 14:24:36 +0100 Subject: [PATCH] netbird_v2: fct do probe instead of read on i2c address 0x51 --- board/nm/netbird_v2/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/nm/netbird_v2/board.c b/board/nm/netbird_v2/board.c index f5ca26557a..4ee329aabe 100644 --- a/board/nm/netbird_v2/board.c +++ b/board/nm/netbird_v2/board.c @@ -498,8 +498,8 @@ static void get_hw_version(void) static void check_fct(void) { - uchar buffer[1]; - if (i2c_read(0x51, 0, 2, buffer, 1) == 0) { + /* If probe fails we are sure no eeprom is connected */ + if (i2c_probe(0x51) == 0) { printf("Entering fct mode\n"); setenv ("bootcmd", ""); }