Merge branch 'developer' of github.com:slsdetectorgroup/slsDetectorPackage into developer

This commit is contained in:
2024-02-06 10:31:00 +01:00
4 changed files with 4 additions and 3 deletions

View File

@ -61,7 +61,7 @@
#define ASIC_FILTER_MAX_RES_VALUE (1) #define ASIC_FILTER_MAX_RES_VALUE (1)
#define MAX_SELECT_CHIP10_VAL (63) #define MAX_SELECT_CHIP10_VAL (63)
#define MAX_PHASE_SHIFTS (240) #define MAX_PHASE_SHIFTS (200)
#define BIT16_MASK (0xFFFF) #define BIT16_MASK (0xFFFF)
#define ADC_DECMT_QUARTER_SPEED (0x3) #define ADC_DECMT_QUARTER_SPEED (0x3)

View File

@ -114,10 +114,11 @@ int getTimeFromString(char *buf, time_t *result) {
t.tm_mday, t.tm_mon, t.tm_year + 1900, t.tm_hour, t.tm_min, t.tm_sec)); t.tm_mday, t.tm_mon, t.tm_year + 1900, t.tm_hour, t.tm_min, t.tm_sec));
*result = mktime(&t); *result = mktime(&t);
if (*result == -1) { /* Do not check as it fails with nios
if (*result == (time_t)-1) {
LOG(logERROR, ("Could not convert time structure to time_t\n")); LOG(logERROR, ("Could not convert time structure to time_t\n"));
return FAIL; return FAIL;
} }*/
return OK; return OK;
} }