mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Trivial changes from review of last PR.
This commit is contained in:
@@ -86,6 +86,8 @@ int stm32_comp_setup(void)
|
||||
|
||||
if (!initialized)
|
||||
{
|
||||
/* Get the comparator interface */
|
||||
|
||||
#ifdef CONFIG_STM32_COMP2
|
||||
comp = stm32_compinitialize(2);
|
||||
if (comp == NULL)
|
||||
@@ -113,6 +115,8 @@ int stm32_comp_setup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Register the comparator character driver at /dev/comp0 */
|
||||
|
||||
ret = comp_register("/dev/comp0", comp);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user