Changeset 8548 for trunk/Ohana/src/opihi/pantasks/controller_status.c
- Timestamp:
- Aug 23, 2006, 5:31:41 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/controller_status.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/controller_status.c
r7917 r8548 15 15 status = CheckControllerStatus (); 16 16 if (!status) { 17 gprint (GP_LOG, "controller is not running\n");17 gprint (GP_LOG, "controller is not active\n"); 18 18 return (TRUE); 19 19 } 20 20 21 21 22 sprintf (command, "status"); 22 23 InitIOBuffer (&buffer, 0x100); 24 25 SerialThreadLock (); 23 26 status = ControllerCommand (command, CONTROLLER_PROMPT, &buffer); 27 SerialThreadUnlock (); 28 24 29 if (status) { 25 30 gwrite (buffer.buffer, 1, buffer.Nbuffer, GP_LOG); 26 31 } else { 27 gprint (GP_LOG, "controller is down\n");32 gprint (GP_LOG, "controller is not communicating\n"); 28 33 } 29 34 FreeIOBuffer (&buffer);
Note:
See TracChangeset
for help on using the changeset viewer.
