From 3c5f7f2caba244a36284073091cbd5d4ae8d87f7 Mon Sep 17 00:00:00 2001 From: Evan Felix Date: Thu, 9 May 2013 15:00:36 -0700 Subject: [PATCH] Fix input parameter --- src/mic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mic.c b/src/mic.c index eec55f1b..0f78f292 100644 --- a/src/mic.c +++ b/src/mic.c @@ -33,8 +33,8 @@ #define MAX_CORES 256 static MicDeviceOnSystem mics[MAX_MICS]; -static U32 num_mics = 0; -static HANDLE mic_handle=NULL; +static U32 num_mics = MAX_MICS; +static HANDLE mic_handle = NULL; #define NUM_THERMS 7 static const int therms[NUM_THERMS] = {eMicThermalDie,eMicThermalDevMem,eMicThermalFin,eMicThermalFout,eMicThermalVccp,eMicThermalVddg,eMicThermalVddq}; static const char *therm_names[NUM_THERMS] = {"die","devmem","fin","fout","vccp","vddg","vddq"}; -- 2.11.0