-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completed onboarding challenge #106
Conversation
- Passed temperature sensor unit tests - Integration tests: Over temperature detected entering 82 degC; safe-temperature resumption detected at 74 degC. Implemented: - lm75bd.c readTempLM75BD function - thermal_mgr.c thermalMgr, osHandlerLM75BD functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple of changes
- null checks for events and thermalMgrQueueHandle - Modified thermalMgrSendEventISR to return ERR_CODE_QUEUE_FULL in event of xQueueSendFromISR fail - Modified thermalMgrSendEvent to return ERR_CODE_QUEUE_FULL in event of xQueueSend fail
43e1ad8
to
ca8eaba
Compare
- Correct pdTrue, pdFalse to pdTRUE, pdFALSE
Thanks for your feedback @Navtajh04 , appreciate it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just 1 change other than that looks good
} | ||
|
||
float temp = {0}; | ||
RETURN_IF_ERROR_CODE(readTempLM75BD(config.devAddr, &temp)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should just be a log if there's an error code followed by a continue since we should not be returning from FreeRTOS functions and especially since this is a void function and this would be returning an error code
Purpose
Pull Request for Firmware Onboarding Challenge.
Suggestions and tips appreciated!
New Changes
Implemented:
Testing