Hacker News new | ask | show | jobs
by dylan604 327 days ago
if (!isShakerRunning) { sendAlert() }

seems like a pretty obvious thing to add

2 comments

Only obvious once you've thought of it I suppose...
It's obvious to anyone that's written software for hardware sensors to ensure the hardware itself is not going to interfere with readings of other sensors. Don't tell the motor to run if the motor is already running type of issues. It's a fairly common bozo check
Doesn't seem that obvious to me