commit | cbe51498953d7bd29f516cdfcdb654706b463d2e | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Tue Aug 07 14:09:17 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Thu Aug 09 17:30:28 2018 +0000 |
tree | f0c4e2422c0cf1f67842a621d680e54634a3020c | |
parent | 6f17bd2220d723fd349077ccd96845a5652403e0 [diff] [blame] |
flash-ipmi: implement flashHashData Change-Id: Ib6a4f0219c623175562760461bffd0a45117d02e Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/flash-ipmi.cpp b/flash-ipmi.cpp index f58363b..8fc9a52 100644 --- a/flash-ipmi.cpp +++ b/flash-ipmi.cpp
@@ -166,7 +166,11 @@ bool FlashUpdate::hashData(uint32_t offset, const std::vector<uint8_t>& bytes) { - /* TODO: implement. */ + if (hashFd) + { + return writeBlock(hashFd, offset, bytes); + } + return false; }