* Fix wrong semaphore->take check in ::get_reading * Simplify semaphore releasing * Fix typos and trailing whitespace