emfcamp / Mk2-Firmware

Firmware that runs on the TiLDA v2 Badge
18 stars 36 forks source link

Split the three different uxBits checks in the PMIC task. #118

Closed jburgess777 closed 10 years ago

jburgess777 commented 10 years ago

This pull is more for comment & review rather than a firm pull request. I'm not sure whether submitting a pull request is appropriate or not.

The only significant difference occurs if the SAMPLE_RATE and CHAREG_STATE event flags are both set simultaneously. Previously only the SAMPLE_RATE bit would be handled and cleared for this case, now both will be processed. I don't know whether this makes a difference in practice but it appears cleaner.

Is CHAREG_STATE a typo?

marekventur commented 10 years ago

Another one for you @dpslwk

dpslwk commented 10 years ago

Looks good to me and yes ill fix up the typo