vrahane commented on a change in pull request #2611:
URL: https://github.com/apache/mynewt-core/pull/2611#discussion_r646181312
##########
File path: hw/drivers/ram/spiram/src/spiram.c
##########
@@ -102,7 +102,7 @@ spiram_write_enable(struct spiram_dev *dev)
int
spiram_read(struct spiram_dev *dev, uint32_t addr, void *buf, uint32_t size)
{
- uint8_t cmd[5] = { SPIRAM_READ };
+ uint8_t cmd[6] = { SPIRAM_READ };
Review comment:
I know its not super intuitive but it is better than 5-6 hardcoded value
which seems we have no clue about where it came from plus, people actually look
at syscfgs as being the source of truth for config settings unless it is a very
config structure which gets set at compile time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]