The sleep_mode caused the missing of some samples.
commita3845ab4b3955aeade06ab3a008cf898f77a6338
authorStefan Mertl <stefan@mertl-research.at>
Thu, 18 Jan 2018 15:27:31 +0000 (18 16:27 +0100)
committerStefan Mertl <stefan@mertl-research.at>
Thu, 18 Jan 2018 15:27:31 +0000 (18 16:27 +0100)
treef2e88ae322c92e36c4a9b126e7dbefa0f9c7c85e
parent1c367d73ad81b6a0fc2889af7f103411f8e22583
The sleep_mode caused the missing of some samples.
This is most likely because of the race-conditions between
entering the sleep mode and the occurrence of the
adc_data_ready interrupt.
Checking the adc_data_ready flag before entering the sleep
mode should fix this problem.
software/arduino/ruwai/ruwai.ino