Skip to content

Commit 83ecf0f

Browse files
authored
Merge pull request #9 from 1e1/develop
fix: syncAt
2 parents 9697952 + 1ba2b43 commit 83ecf0f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=GoogleSchedular
2-
version=3.0.1
2+
version=3.0.2
33
author=1e1
44
maintainer=1e1 2.71828183e0+googleSchedular@gmail.com
55
sentence=Arduino Library for reading events title from a Google Calendar

src/GoogleSchedular.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,17 +197,17 @@ class GoogleSchedular : public GoogleApiCalendar {
197197
GoogleOAuth2::Response ret;
198198
JsonDocument doc;
199199
{
200-
const char org = ts[17];
200+
const char org = ts[18];
201201
String t0 = ts;
202202
t0.setCharAt(18, '0');
203203
ts.setCharAt(18, '9');
204204

205205
ret = getEvents(doc, _calendarId, t0, ts);
206206

207-
ts.setCharAt(17, org);
207+
ts.setCharAt(18, org);
208208
}
209209

210-
if (ret == GoogleOAuth2::OK) {
210+
if (ret != GoogleOAuth2::OK) {
211211
_state = State::ERROR;
212212
} else {
213213
_eventList.clear();

0 commit comments

Comments
 (0)