  */
 class VCC : public Periodic {
 public:
-  VCC(uint16_t mv, uint16_t sec = 2) :
-    Periodic(&scheduler, sec * 1024),
+  VCC(uint16_t mv, uint16_t sec = 1) :
+    Periodic(&scheduler, sec * 1000UL),
     m_threshold(mv),
     m_vcc(0)
-  {
-  }
+  {}
   virtual void run()
   {
     m_vcc = AnalogPin::bandgap();

 * Cosa demonstration of VCC monitoring for low power condition.
 * Class VCC may be reused. Override the default on_low_power() method.
 *
 * @section Note
 * Should be compiled for standard Arduino. VCC class may be used
 * for ATtinyX5 by reimplementing on_low_power().
 *
 * This file is part of the Arduino Che Cosa project.
 */


#include "Cosa/Watchdog.hh"
#include "Cosa/Periodic.hh"

// Use the Watchdog job scheduler
Watchdog::Scheduler scheduler;

/**
