src/luos.c
static error_return_t Luos_IsALuosCmd(service_t *service, uint8_t cmd, uint16_t size)
{
    switch (cmd)
    {
        case WRITE_NODE_ID:
        case RESET_DETECTION:
        case SET_BAUDRATE:
            // ERROR
            LUOS_ASSERT(0);
            break;
        case ASSERT:
            if (service->service_cb != 0)
            {
                return SUCCEED;
            }
            else
            {
                return FAILED;
            }
            break;
        case RTB_CMD:
        case WRITE_ALIAS:
        case UPDATE_PUB:
            return SUCCEED;
            break;

        case REVISION:
        case LUOS_REVISION:
        case NODE_UUID:
        case LUOS_STATISTICS:
            if (size == 0)
            {
                return SUCCEED;
            }
            break;
        case BOOTLOADER_CMD:
            return SUCCEED;
            break;
        default:
            return FAILED;
            break;
    }
    return FAILED;
}
/******************************************************************************
 * @brief Check if this command concern luos
 * @param cmd The command value
 * @return SUCCEED if the command if for Luos else Fail
 ******************************************************************************/
@brief Check if this command concern luos
@param cmd The command value
@return SUCCEED if the command if for Luos else Fail
@brief Check if this command concern luos @param cmd The command value @return SUCCEED if the command if for Luos else Fail
static error_return_t Luos_IsALuosCmd(service_t *service, uint8_t cmd, uint16_t size)
{
    switch (cmd)
    {
        case WRITE_NODE_ID:
        case RESET_DETECTION:
        case SET_BAUDRATE:
            LUOS_ASSERT(0);
            break;
        case ASSERT:
            if (service->service_cb != 0)
            {
                return SUCCEED;
            }
            else
            {
                return FAILED;
            }
            break;
        case RTB_CMD:
        case WRITE_ALIAS:
        case UPDATE_PUB:
            return SUCCEED;
            break;
        case REVISION:
        case LUOS_REVISION:
        case NODE_UUID:
        case LUOS_STATISTICS:
            if (size == 0)
            {
                return SUCCEED;
            }
            break;
        case BOOTLOADER_CMD:
            return SUCCEED;
            break;
        default:
            return FAILED;
            break;
    }
    return FAILED;
}
static error_return_t Luos_IsALuosCmd ( service_t * service , uint8_t cmd , uint16_t size ) { switch ( cmd ) { case WRITE_NODE_ID : case RESET_DETECTION : case SET_BAUDRATE : LUOS_ASSERT ( 0 ) ; break ; case ASSERT : if ( service -> service_cb != 0 ) { return SUCCEED ; } else { return FAILED ; } break ; case RTB_CMD : case WRITE_ALIAS : case UPDATE_PUB : return SUCCEED ; break ; case REVISION : case LUOS_REVISION : case NODE_UUID : case LUOS_STATISTICS : if ( size == 0 ) { return SUCCEED ; } break ; case BOOTLOADER_CMD : return SUCCEED ; break ; default : return FAILED ; break ; } return FAILED ; }
@brief Check if this command concern luos
 @param cmd The command value
 @return SUCCEED if the command if for Luos else Fail
@brief Check if this command concern luos @param cmd The command value @return SUCCEED if the command if for Luos else Fail
// ERROR