From: Mart Lubbers Date: Fri, 23 Jun 2017 18:25:38 +0000 (+0200) Subject: Merge branch 'master' of gitlab.science:mlubbers/mTask X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=23df390c56cd0c57eeb6d71e44bfa89ccb27cad7;hp=1e18ef692756fa4a6f163994e7edb5ad4f11b3db;p=mTask.git Merge branch 'master' of gitlab.science:mlubbers/mTask --- diff --git a/Shares/mTaskShare.icl b/Shares/mTaskShare.icl index a9ebf56..2133f0b 100644 --- a/Shares/mTaskShare.icl +++ b/Shares/mTaskShare.icl @@ -15,10 +15,10 @@ from StdFunc import flip derive class iTask MTaskShare manageShares :: Task [MTaskDevice] -manageShares = viewInformation "" [] []//whileUnchanged deviceStoreNP -// $ \devs->case devs of -// [] = viewInformation "No devices yet" [] [] -// _ = allTasks (map manageSharesOnDevice devs) +manageShares = whileUnchanged deviceStoreNP + $ \devs->case devs of + [] = viewInformation "No devices yet" [] [] + _ = allTasks (map manageSharesOnDevice devs) manageSharesOnDevice :: MTaskDevice -> Task MTaskDevice manageSharesOnDevice dev = (case dev.deviceShares of diff --git a/Utils/SDS.icl b/Utils/SDS.icl index f90c029..e23e767 100644 --- a/Utils/SDS.icl +++ b/Utils/SDS.icl @@ -63,10 +63,8 @@ where notifyPred (Just (d1, i1)) (Just (d2, i2)) = d1 == d2 && i1 == i2 realDeviceStore :: Shared [MTaskDevice] -realDeviceStore = memoryShare "mTaskDevices" [] - -bcStateStore :: Shared BCState -bcStateStore = memoryShare "mTaskBCState" zero +realDeviceStore = sharedStore "mTaskDevices" [] +//realDeviceStore = memoryShare "mTaskDevices" [] mTaskTaskStore :: Shared [String] mTaskTaskStore = memoryShare "mTaskTasks" $ 'DM'.keys allmTasks diff --git a/client/task.h b/client/task.h index 253558e..41ff04a 100644 --- a/client/task.h +++ b/client/task.h @@ -12,7 +12,6 @@ struct task { uint16_t interval; unsigned long lastrun; uint8_t taskid; - struct task *next; uint8_t *bc; char type; int value;