Skip to content

Commit

Permalink
Fixed definition to uppercase.
Browse files Browse the repository at this point in the history
    Added all fans with maximum speed while thermal readed fail.
    Fixed SYS_OBJECT_ID to ".9032.1" in __init__.py

Signed-off-by: hans <[email protected]>
  • Loading branch information
hans committed Apr 25, 2017
1 parent 8826b17 commit ef3c5f9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG
#include <global_custom_config.h>
#endif
#ifdef x86_64_delta_ag9032V1_INCLUDE_CUSTOM_CONFIG
#ifdef X86_64_DELTA_AG9032V1_INCLUDE_CUSTOM_CONFIG
#include <x86_64_delta_ag9032v1_custom_config.h>
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* x86_64_delta_ag9032v1 Doxygen Header
*
*****************************************************************************/
#ifndef __x86_64_delta_ag9032v1_DOX_H__
#define __x86_64_delta_ag9032v1_DOX_H__
#ifndef __X86_64_DELTA_AG9032V1_DOX_H__
#define __X86_64_DELTA_AG9032V1_DOX_H__

/**
* @defgroup x86_64_delta_ag9032v1 x86_64_delta_ag9032v1 - x86_64_delta_ag9032v1 Description
Expand All @@ -23,4 +23,4 @@ The documentation overview for this module should go here.
*
*/

#endif /* __x86_64_delta_ag9032v1_DOX_H__ */
#endif /* __X86_64_DELTA_AG9032V1_DOX_H__ */
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* @{
*
*****************************************************************************/
#ifndef __x86_64_delta_ag9032v1_PORTING_H__
#define __x86_64_delta_ag9032v1_PORTING_H__
#ifndef __X86_64_DELTA_AG9032V1_PORTING_H__
#define __X86_64_DELTA_AG9032V1_PORTING_H__


/* <auto.start.portingmacro(ALL).define> */
Expand Down Expand Up @@ -103,5 +103,5 @@
/* <auto.end.portingmacro(ALL).define> */


#endif /* __x86_64_delta_ag9032v1_PORTING_H__ */
#endif /* _X86_64_DELTA_AG9032V1_PORTING_H__ */
/* @} */
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ onlp_sysi_platform_manage_fans(void)
onlp_thermali_info_get(ONLP_THERMAL_ID_CREATE(THERMAL_1_ON_PSU1), &thermal[6]) != ONLP_STATUS_OK ||
onlp_thermali_info_get(ONLP_THERMAL_ID_CREATE(THERMAL_1_ON_PSU2), &thermal[7]) != ONLP_STATUS_OK )
{
/* Setting all fans speed to maximum */
new_duty_percentage = SPEED_100_PERCENTAGE;
for(i = 1 ; i <= 12; i++)
{
onlp_fani_percentage_set(ONLP_FAN_ID_CREATE(i), new_duty_percentage);
}

AIM_LOG_ERROR("Unable to read thermal status");
return ONLP_STATUS_E_INTERNAL;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class OnlPlatform_x86_64_delta_ag9032v1_r0(OnlPlatformDelta,
OnlPlatformPortConfig_32x100):
PLATFORM='x86-64-delta-ag9032v1-r0'
MODEL="AG9032V1"
SYS_OBJECT_ID=".9032"
SYS_OBJECT_ID=".9032.1"


def baseconfig(self):
Expand Down

0 comments on commit ef3c5f9

Please sign in to comment.