@@ -138,8 +138,8 @@ class Schedule {
138
138
}
139
139
140
140
static unsigned int createFixedDeltaScheduleConfiguration (ScheduleUnit unit, unsigned int delta) {
141
- unsigned int temp_unit = static_cast <int >(unit);
142
- unsigned int temp_type = static_cast <int >(ScheduleType::FixedDelta);
141
+ int temp_unit = static_cast <int >(unit);
142
+ int temp_type = static_cast <int >(ScheduleType::FixedDelta);
143
143
unsigned int temp_delta = delta;
144
144
145
145
if (temp_delta > SCHEDULE_REP_MASK) {
@@ -150,7 +150,7 @@ class Schedule {
150
150
151
151
static unsigned int createWeeklyScheduleConfiguration (ScheduleWeeklyMask weekMask) {
152
152
unsigned int temp_week = 0 ;
153
- unsigned int temp_type = static_cast <int >(ScheduleType::Weekly);
153
+ int temp_type = static_cast <int >(ScheduleType::Weekly);
154
154
155
155
for (int i = 0 ; i<7 ; i++) {
156
156
if (weekMask[static_cast <ScheduleWeekDay>(i)] == ScheduleState::Active) {
@@ -162,7 +162,7 @@ class Schedule {
162
162
163
163
static unsigned int createMonthlyScheduleConfiguration (int dayOfTheMonth) {
164
164
int temp_day = dayOfTheMonth;
165
- unsigned int temp_type = static_cast <int >(ScheduleType::Monthly);
165
+ int temp_type = static_cast <int >(ScheduleType::Monthly);
166
166
167
167
if (temp_day < 1 ) {
168
168
temp_day = 1 ;
@@ -175,9 +175,9 @@ class Schedule {
175
175
}
176
176
177
177
static unsigned int createYearlyScheduleConfiguration (ScheduleMonth month, int dayOfTheMonth) {
178
- int temp_day = createMonthlyScheduleConfiguration (dayOfTheMonth);
178
+ unsigned int temp_day = createMonthlyScheduleConfiguration (dayOfTheMonth);
179
179
int temp_month = static_cast <int >(month);
180
- unsigned int temp_type = static_cast <int >(ScheduleType::Yearly);
180
+ int temp_type = static_cast <int >(ScheduleType::Yearly);
181
181
182
182
return (temp_type << SCHEDULE_TYPE_SHIFT) | (temp_month << SCHEDULE_MONTH_SHIFT)| temp_day;
183
183
}
0 commit comments