Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPS load/save ephems turn on/off SD unconditionally #25

Open
jdavid opened this issue Nov 13, 2017 · 4 comments
Open

GPS load/save ephems turn on/off SD unconditionally #25

jdavid opened this issue Nov 13, 2017 · 4 comments

Comments

@jdavid
Copy link

jdavid commented Nov 13, 2017

I think it should check REG_SD. I have changed the code so it reads like this:

bool _SD_ON = (WaspRegister & REG_SD);
if (! _SD_ON)
{
    SD.ON();
}

The current code has a couple of issues:

  • If SD was OFF before, when leaving loadEphems it will be ON, wasting power.
  • If SD was ON, turning it ON again fails with flag = ROOT_FAILED, as a consequence loadEphems fails.
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Nov 13, 2017
jdavid added a commit to spectraphilic/wasp_sketches that referenced this issue Nov 13, 2017
@Libelium
Copy link
Owner

Hi,

It seems you are right about the issues. You should also add these lines of code into saveEphems() function.

Regards

@jdavid
Copy link
Author

jdavid commented Nov 23, 2017

This bug is still present in v029

jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Nov 23, 2017
@Libelium
Copy link
Owner

Thanks for the reminder. Please don't hesitate to open new issues if you find new bugs at our API.

Regards

jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Mar 9, 2018
@jdavid
Copy link
Author

jdavid commented Mar 9, 2018

This is partially fixed in v030, saveEphems() is still not fixed.

jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Apr 23, 2018
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Jun 28, 2018
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Jun 28, 2018
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Aug 13, 2018
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Aug 22, 2018
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Nov 7, 2018
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Nov 7, 2018
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Nov 21, 2018
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Dec 26, 2018
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Mar 13, 2019
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Dec 24, 2019
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Dec 24, 2019
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Dec 24, 2019
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue Dec 24, 2019
jdavid added a commit to spectraphilic/waspmoteapi-uio that referenced this issue May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants