BugID:18726383: white scan warning; NULL checkout return if fail;board
@@ -97,6 +97,7 @@ void GpioMcuWrite( Gpio_t *obj, uint32_t value )
if(obj == NULL)
{
DBG_PRINTF("write gpio faild!\r\n");
+ return;
}
// Check if pin is not connected
@@ -113,6 +114,7 @@ void GpioMcuToggle( Gpio_t *obj )
if(obj == NULL)
{
DBG_PRINTF("toggle gpio faild!\r\n");
+ return;
}
// Check if pin is not connected
@@ -128,6 +130,7 @@ uint32_t GpioMcuRead( Gpio_t *obj )
if( obj == NULL )
{
DBG_PRINTF("gpio read faild!\r\n");
+ return 0;
}
// Check if pin is not connected
if( obj->pin == NC )
