ugly hack vor voltage reading

This commit is contained in:
schneider 2011-08-05 20:15:59 +02:00
parent bbc739589b
commit ae5a7c3f07
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ void VoltageCheck(void){
results = adcRead(1);
results *= 10560;
results /= 1024;
results += 50;
if( results < 3500 ){
nrf_off();
gpioSetValue (RB_PWR_GOOD, 0);