Skip to content

Conversation

@abhinavraj23
Copy link
Member

@abhinavraj23 abhinavraj23 commented Aug 18, 2018

Fixes #1376

Changes:
There was an infinity loop in capacitance measurement, changed it to a finite loop, also handled null capacitance value in MultimeterActivity

Checklist: [Please tick following check boxes with [x] if the respective task is completed]

  • I have used resources from strings.xml, dimens.xml and colors.xml without hard-coding them
  • No modifications done at the end of resource files strings.xml, dimens.xml or colors.xml
  • I have reformatted code in every file included in this PR [CTRL+ALT+L]
  • My code does not contain any extra lines or extra spaces
  • I have requested reviews from other members

APK for testing: [Compress the app-debug.apk file into a <feature>.rar or <feature>.zip file and upload it here]
capacitance.apk.zip

@abhinavraj23 abhinavraj23 added the Status: Review Required Requested reviews from peers and maintainers label Aug 18, 2018
@abhinavraj23 abhinavraj23 self-assigned this Aug 18, 2018
@abhinavraj23 abhinavraj23 changed the title fix:solved issue of crashing in capacitance measurement fix: solved issue of crashing in capacitance measurement Aug 18, 2018
@cweitat
Copy link
Contributor

cweitat commented Aug 19, 2018

Tested and it is still not working as intended.
Spammed read button a lot of times and thereafter "Cannot Measure" appears

@abhinavraj23
Copy link
Member Author

abhinavraj23 commented Aug 19, 2018

@cweitat That is correct, if you would have done it previously the app would have crashed, but now it's showing cannot measure. This problems occurs when there is a problem in data fetching, at this point of time the user has reconnect the otg cable to the device, shall I put the toast message for the same?

@abhinavraj23
Copy link
Member Author

@cweitat I have made changes in the code and have updated the apk, please review. There should not be any problem now, atleast the issue of app crashing as mentioned in #1376 is solved completely 👍

@abhinavraj23 abhinavraj23 requested a review from cweitat August 19, 2018 13:10
@cweitat
Copy link
Contributor

cweitat commented Aug 19, 2018

@abhinavraj23 Theoretically, if the multimeter is set to constant reading then this problem would have been eliminated. Probably at a refresh rate of 1 second or faster. And a hold function to replace read button.

Anyway will try the apk soon and feedback. Thanks

@abhinavraj23
Copy link
Member Author

abhinavraj23 commented Aug 19, 2018

@cweitat Sure I will make those change, but for now we need to solve the issue of crashing, that is what this PR is for. I will implement the auto-read feature in my subsequent PRs 👍

@cweitat
Copy link
Contributor

cweitat commented Aug 19, 2018

@abhinavraj23 yup. got your point. Thanks :)

@abhinavraj23
Copy link
Member Author

@cweitat @CloudyPadmal @harsh-2711 @Avjeet Please review it 👍

@cweitat
Copy link
Contributor

cweitat commented Aug 20, 2018

Not crashing anymore

@CloudyPadmal CloudyPadmal merged commit e05a0fd into fossasia:development Aug 20, 2018
@abhinavraj23 abhinavraj23 deleted the cap_bug branch October 1, 2018 06:50
@CloudyPadmal CloudyPadmal removed the Status: Review Required Requested reviews from peers and maintainers label Dec 13, 2018
neel1998 pushed a commit to neel1998/pslab-android that referenced this pull request Jul 30, 2019
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

Successfully merging this pull request may close these issues.

3 participants