Browse Source

Fixed two logic errors that were cancelling each other out.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
f944737045
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/drivers/net/etherfabric.c

+ 3
- 3
src/drivers/net/etherfabric.c View File

2273
 		memcpy ( data_in, &reg, len );
2273
 		memcpy ( data_in, &reg, len );
2274
 	}
2274
 	}
2275
 	
2275
 	
2276
-	return 1;
2276
+	return 0;
2277
 }
2277
 }
2278
 
2278
 
2279
 /**
2279
 /**
2315
 	nvs = ( efab->has_flash ?
2315
 	nvs = ( efab->has_flash ?
2316
 		&efab->falcon_flash.nvs : &efab->falcon_eeprom.nvs );
2316
 		&efab->falcon_flash.nvs : &efab->falcon_eeprom.nvs );
2317
 
2317
 
2318
-	return nvs_read ( nvs, FALCON_MAC_ADDRESS_OFFSET ( efab->port ),
2319
-			  efab->mac_addr, sizeof ( efab->mac_addr ) );
2318
+	return ( nvs_read ( nvs, FALCON_MAC_ADDRESS_OFFSET ( efab->port ),
2319
+			    efab->mac_addr, sizeof ( efab->mac_addr ) ) == 0 );
2320
 }
2320
 }
2321
 
2321
 
2322
 /** RX descriptor */
2322
 /** RX descriptor */

Loading…
Cancel
Save