Skip to content

Commit

Permalink
+code for #2
Browse files Browse the repository at this point in the history
  • Loading branch information
kneerunjun committed Apr 2, 2021
1 parent 427109f commit b029596
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ for _, s := range scheds {
}
```

#### Applying schedules for one cycle:
#### Applying schedules (for one cycle):
---------

```go
Expand Down
8 changes: 4 additions & 4 deletions sched.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ func overlapsWith(left, right Schedule) (bool, bool, bool) {
// ================================== Json Relay state is for file reads ============================
// Making a relay state from a json file
type JSONRelayState struct {
ON string `json:"on"`
OFF string `json:"off"`
IDs []string `json:"ids"`
Primary bool `json:"primary"`
ON string `json:"on" bson:"on"`
OFF string `json:"off" bson:"off"`
IDs []string `json:"ids" bson:"ids"`
Primary bool `json:"primary" bson:"primary"`
}

// ToSchedule : reads from json and pumps up a schedule
Expand Down

0 comments on commit b029596

Please sign in to comment.