summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-06-04 05:40:07 -0500
committerRaptor Engineering Development Team <support@raptorengineering.com>2018-06-04 05:40:07 -0500
commite2230d74d15f57ceb57a2799a1e9a48d4e9fbfcb (patch)
tree4dafbf9ae10422eaca5e51b1745c2df0d47ac091
parent43ac313fcb96e5667a2ec61082c13fb91f5bab82 (diff)
downloadvpdtools-e2230d74d15f57ceb57a2799a1e9a48d4e9fbfcb.tar.gz
vpdtools-e2230d74d15f57ceb57a2799a1e9a48d4e9fbfcb.zip
Use shell redirect for stderror on i2c commands
This is a continuation of the prior commit
-rwxr-xr-xwoferclock/write_vpd2
1 files changed, 1 insertions, 1 deletions
diff --git a/woferclock/write_vpd b/woferclock/write_vpd
index a21fd5e..5774ca1 100755
--- a/woferclock/write_vpd
+++ b/woferclock/write_vpd
@@ -48,7 +48,7 @@ for i in range(0, vpd_length, 2):
if original_data[i:(i+2)] != raw_data[i:(i+2)]:
address_high = hex((address & 65280) >> 8)
address_low = hex(address & 255)
- command = "i2cset -y " + str(eeprom_bus) + " 0x" + format(eeprom_address, '02x') + " " + address_high + " " + address_low + " 0x" + raw_data[i:(i+2)] + " i"
+ command = "i2cset -y " + str(eeprom_bus) + " 0x" + format(eeprom_address, '02x') + " " + address_high + " " + address_low + " 0x" + raw_data[i:(i+2)] + " i 2>/dev/null"
try:
subprocess.check_call(command, stderr=subprocess.STDOUT, shell=True)
except:
OpenPOWER on IntegriCloud