netbird_v2: fct do probe instead of read on i2c address 0x51

This commit is contained in:
Stefan Eichenberger 2017-03-01 14:24:36 +01:00
parent 18ea9aa748
commit 1af4aa3890
1 changed files with 2 additions and 2 deletions

View File

@ -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", "");
}