@@ -157,7 +157,7 @@ void TimeService::setSyncInterval(unsigned long seconds)
157
157
void TimeService::setTimeZoneData (long offset, unsigned long dst_until)
158
158
{
159
159
if (_timezone_offset != offset || _timezone_dst_until != dst_until) {
160
- DEBUG_DEBUG (" ArduinoIoTCloudTCP ::%s offset: %d dst_unitl %ul" , __FUNCTION__, offset, dst_until);
160
+ DEBUG_DEBUG (" TimeService ::%s offset: %d dst_unitl %ul" , __FUNCTION__, offset, dst_until);
161
161
_timezone_offset = offset;
162
162
_timezone_dst_until = dst_until;
163
163
_is_tz_configured = true ;
@@ -196,29 +196,29 @@ unsigned long TimeService::getTimeFromString(const String& input)
196
196
static const int expected_parameters = 6 ;
197
197
198
198
if (input == nullptr || input.length () != expected_length) {
199
- DEBUG_ERROR (" ArduinoIoTCloudTCP ::%s invalid input length" , __FUNCTION__);
199
+ DEBUG_ERROR (" TimeService ::%s invalid input length" , __FUNCTION__);
200
200
return 0 ;
201
201
}
202
202
203
203
int scanned_parameters = sscanf (input.c_str (), " %d %s %d %d:%d:%d" , &year, s_month, &day, &hour, &min, &sec);
204
204
205
205
if (scanned_parameters != expected_parameters) {
206
- DEBUG_ERROR (" ArduinoIoTCloudTCP ::%s invalid input parameters number" , __FUNCTION__);
206
+ DEBUG_ERROR (" TimeService ::%s invalid input parameters number" , __FUNCTION__);
207
207
return 0 ;
208
208
}
209
209
210
210
char * s_month_position = strstr (month_names, s_month);
211
211
212
212
if (s_month_position == nullptr || strlen (s_month) != 3 ) {
213
- DEBUG_ERROR (" ArduinoIoTCloudTCP ::%s invalid month name, use %s" , __FUNCTION__, month_names);
213
+ DEBUG_ERROR (" TimeService ::%s invalid month name, use %s" , __FUNCTION__, month_names);
214
214
return 0 ;
215
215
}
216
216
217
217
month = (s_month_position - month_names) / 3 ;
218
218
219
219
if (month < 0 || month > 11 || day < 1 || day > 31 || year < 1900 || hour < 0 ||
220
220
hour > 24 || min < 0 || min > 60 || sec < 0 || sec > 60 ) {
221
- DEBUG_ERROR (" ArduinoIoTCloudTCP ::%s invalid date values" , __FUNCTION__);
221
+ DEBUG_ERROR (" TimeService ::%s invalid date values" , __FUNCTION__);
222
222
return 0 ;
223
223
}
224
224
0 commit comments