Psi Swarm robot library version 0.9
Fork of PsiSwarmV8_CPP by
Diff: colour.cpp
- Revision:
- 12:878c6e9d9e60
- Parent:
- 6:b340a527add9
- Child:
- 13:adbd827234a4
diff -r 312663037b8c -r 878c6e9d9e60 colour.cpp --- a/colour.cpp Sun Oct 16 21:06:15 2016 +0000 +++ b/colour.cpp Mon Oct 17 13:09:10 2016 +0000 @@ -13,7 +13,7 @@ * (C) Dept. Electronics & Computer Science, University of York * James Hilder, Alan Millard, Alexander Horsfield, Homero Elizondo, Jon Timmis * - * PsiSwarm Library Version: 0.7 + * PsiSwarm Library Version: 0.8 * * October 2016 * @@ -51,6 +51,6 @@ primary_i2c.write(BASE_COLOUR_ADDRESS, command, 1, false); primary_i2c.read(BASE_COLOUR_ADDRESS, data, 1, false); if(data[0] == 0x44) return_value = 1; - else debug("Invalid response from colour sensor:%X\n",data[0]); + else psi.debug("Invalid response from colour sensor:%X\n",data[0]); return return_value; }