Renamed master 'mode' to 'phase'.

This commit is contained in:
Florian Pose
2008-06-18 13:33:50 +00:00
parent d91aa97487
commit 0ef150c812
9 changed files with 107 additions and 100 deletions
+3 -3
View File
@@ -434,14 +434,14 @@ void Master::showMaster()
cout
<< "Master" << index << endl
<< " State: ";
<< " Phase: ";
switch (data.mode) {
switch (data.phase) {
case 0: cout << "Waiting for device..."; break;
case 1: cout << "Idle"; break;
case 2: cout << "Operation"; break;
default:
err << "Invalid master state " << data.mode;
err << "Invalid master phase " << data.phase;
throw MasterException(err.str());
}