[tuxdroid-svn] r759 - firmware/tuxcore/trunk
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-12-06 17:18:58
|
Author: jaguarondi Date: 2007-12-06 18:18:59 +0100 (Thu, 06 Dec 2007) New Revision: 759 Modified: firmware/tuxcore/trunk/sensors.c Log: * Minor changes. Modified: firmware/tuxcore/trunk/sensors.c =================================================================== --- firmware/tuxcore/trunk/sensors.c 2007-12-06 17:17:52 UTC (rev 758) +++ firmware/tuxcore/trunk/sensors.c 2007-12-06 17:18:59 UTC (rev 759) @@ -65,7 +65,7 @@ else if (sensorsControlState == 1) { light_control(ADC_read()); - if (gStatus.mot != 0) + if (gStatus.mot) motorsStatus = 1; ADC_start(BATTERY_ADMUX); // XXX arg : ADMUX @@ -73,7 +73,7 @@ } else if (sensorsControlState == 2) { - if (gStatus.mot != 0) + if (gStatus.mot) motorsStatus = 1; battery_control(ADC_read()); sensorsControlState = 0; @@ -114,7 +114,9 @@ \param light_val The light level This function control the light level. - The light sensor has 2 different values of pull-up resistors (1M and 10k) to increase the range. It's necessary to switch from one to the other resistor depending on the light level. This is done here. + The light sensor has 2 different values of pull-up resistors (1M and 10k) to + increase the range. It's necessary to switch from one to the other resistor + depending on the light level. This is done here. */ void static light_control(uint16_t light_val) @@ -146,10 +148,10 @@ /** \brief Battery control function. - \param battery_val The battery level + \param battery_val Battery level - The battery level is just store in gStatus, to be sent to the PC - */ + The battery level is just stored in gStatus to be sent to the computer. + */ void static battery_control(uint16_t battery_val) { |