Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
When I use wait() in my code it seems to always be one second regardless of what I set it to.
do { result = (MCPAPRead(ph, &resp)) && //expecting FAULT_WARNING_CMD_ID (resp.cmdID == FAULT_WARNING_CMD_ID) && //Verify POR IRQ0# is active (match(resp.data, brownOut, sizeof(brownOut)));//fault code 15612 counter++; pc->printf("count %d\r\n", counter); wait(0.005); }while (result || counter < 20);when I time the printf to a terminal here, its always 20 seconds. Yet if I do a simple new program with the blinking led it works fine. Have I broken my wait() somehow?