src/luos.c
static error_return_t Luos_SaveAlias(service_t *service, uint8_t *alias)
{
    // Get service index
    uint16_t i = (uint16_t)(Luos_GetServiceIndex(service));

    if ((i >= 0) && (i != 0xFFFF))
    {
        Luos_WriteAlias(i, alias);
        return SUCCEED;
    }
    return FAILED;
}
/******************************************************************************
 * @brief store alias name service in flash
 * @param service to store
 * @param alias to store
 * @return error
 ******************************************************************************/
@brief store alias name service in flash
@param service to store
@param alias to store
@return error
@brief store alias name service in flash @param service to store @param alias to store @return error
static error_return_t Luos_SaveAlias(service_t *service, uint8_t *alias)
{
    uint16_t i = (uint16_t)(Luos_GetServiceIndex(service));
    if ((i >= 0) && (i != 0xFFFF))
    {
        Luos_WriteAlias(i, alias);
        return SUCCEED;
    }
    return FAILED;
}
static error_return_t Luos_SaveAlias ( service_t * service , uint8_t * alias ) { uint16_t i = ( uint16_t ) ( Luos_GetServiceIndex ( service ) ) ; if ( ( i >= 0 ) && ( i != 0xFFFF ) ) { Luos_WriteAlias ( i , alias ) ; return SUCCEED ; } return FAILED ; }
@brief store alias name service in flash
 @param service to store
 @param alias to store
 @return error
@brief store alias name service in flash @param service to store @param alias to store @return error
// Get service index