Describe a time you had to debug an issue where the software logic was correct, but the hardware was behaving unexpectedly.