Changed from HEI_READ_ONLY to HEI_ENABLE_HW_WRITE
Changed conditional flag from from HEI_READ_ONLY to HEI_ENABLE_HW_WRITE
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: Id93d33e35d1026822a2081f5e10f5b6488aad9c3
diff --git a/src/hei_user_interface.hpp b/src/hei_user_interface.hpp
index 17bccb1..09cbcfb 100644
--- a/src/hei_user_interface.hpp
+++ b/src/hei_user_interface.hpp
@@ -47,7 +47,7 @@
bool registerRead(const Chip& i_chip, void* o_buffer, size_t& io_bufSize,
uint64_t i_regType, uint64_t i_address);
-#ifndef __HEI_READ_ONLY
+#ifdef __HEI_ENABLE_HW_WRITE
/**
* @brief Performs a hardware register write operation.
@@ -81,7 +81,7 @@
bool registerWrite(const Chip& i_chip, void* i_buffer, size_t& io_bufSize,
uint64_t i_regType, uint64_t i_address);
-#endif
+#endif // __HEI_ENABLE_HW_WRITE
/**
* @brief Prints an informational trace/log.