Skip to content

Commit

Permalink
Bumping version to 1.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Jun 28, 2019
1 parent 482025b commit 2eab0da
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
3 changes: 2 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Release Notes

## 1.4.5 - 2019-06-28
## 1.4.6 - 2019-06-28
* Update deps
* Use --self-contained for Firmware
* Hook into view

## 1.3.1 - 2019-03-22
* Show light
Expand Down
5 changes: 3 additions & 2 deletions src/Client/ReleaseNotes.fs
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
module internal ReleaseNotes

let Version = "1.4.5"
let Version = "1.4.6"

let IsPrerelease = false

let Notes = """
# Release Notes
## 1.4.5 - 2019-06-28
## 1.4.6 - 2019-06-28
* Update deps
* Use --self-contained for Firmware
* Hook into view
## 1.3.1 - 2019-03-22
* Show light
Expand Down
8 changes: 4 additions & 4 deletions src/PiServer/Elmish.Audio.fs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ module Program =
with _ -> ()
}

let mapSetState setState model dispatch =
let (v:Audio) = Program.view program model dispatch
let mapView view model dispatch =
let (v:Audio) = view model dispatch
match lastView with
| Some r when r = v -> ()
| Some r ->
Expand All @@ -96,7 +96,7 @@ module Program =
| _ -> ()

lastView <- Some v
setState model dispatch
v

program
|> Program.map id id id mapSetState id
|> Program.map id id mapView id id
16 changes: 8 additions & 8 deletions src/PiServer/PiServer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let runIn (timeSpan:TimeSpan) successMsg errorMsg =
do! Task.Delay (int timeSpan.TotalMilliseconds)
return ()
}
Cmd.ofTask t () (fun _ -> successMsg) errorMsg
Cmd.OfTask.either t () (fun _ -> successMsg) errorMsg


let log =
Expand Down Expand Up @@ -153,14 +153,14 @@ let update (msg:Msg) (model:Model) =
match msg with
| VolumeUp ->
let vol = min 1. (model.Volume + 0.1)
{ model with Volume = vol }, Cmd.ofFunc setVolumeScript vol Noop Err
{ model with Volume = vol }, Cmd.OfFunc.either setVolumeScript vol Noop Err

| VolumeDown ->
let vol = max 0. (model.Volume - 0.1)
{ model with Volume = vol }, Cmd.ofFunc setVolumeScript vol Noop Err
{ model with Volume = vol }, Cmd.OfFunc.either setVolumeScript vol Noop Err

| NewRFID rfid ->
{ model with RFID = Some rfid }, Cmd.ofTask nextFile (model,rfid) NewTag Err
{ model with RFID = Some rfid }, Cmd.OfTask.either nextFile (model,rfid) NewTag Err

| RFIDRemoved ->
{ model with RFID = None }, Cmd.ofMsg (FinishPlaylist())
Expand Down Expand Up @@ -190,28 +190,28 @@ let update (msg:Msg) (model:Model) =
| NextMediaFile ->
match model.RFID with
| Some rfid ->
model, Cmd.ofTask nextFile (model,rfid) NewTag Err
model, Cmd.OfTask.either nextFile (model,rfid) NewTag Err
| None ->
model, Cmd.none

| PreviousMediaFile ->
match model.RFID with
| Some rfid ->
model, Cmd.ofTask previousFile (model,rfid) NewTag Err
model, Cmd.OfTask.either previousFile (model,rfid) NewTag Err
| None ->
model, Cmd.none

| FinishPlaylist _ ->
{ model with Playing = None }, Cmd.none

| CheckFirmware ->
model, Cmd.ofTask FirmwareUpdate.checkFirmware (log,model.TagServer) FirmwareUpToDate Err
model, Cmd.OfTask.either FirmwareUpdate.checkFirmware (log,model.TagServer) FirmwareUpToDate Err

| Noop _ ->
model, Cmd.none

| DiscoverStartup ->
model, Cmd.ofTask getStartupAction model ExecuteAction Err
model, Cmd.OfTask.either getStartupAction model ExecuteAction Err

| FirmwareUpToDate _ ->
log.InfoFormat("Firmware {0} is uptodate.", ReleaseNotes.Version)
Expand Down

0 comments on commit 2eab0da

Please sign in to comment.