summaryrefslogtreecommitdiffstats
path: root/firmware/main.c
diff options
context:
space:
mode:
authorcpldcpu <cpldcpu@gmail.com>2014-02-02 18:34:47 +0100
committercpldcpu <cpldcpu@gmail.com>2014-02-02 18:34:47 +0100
commitd2cb718727dbe19f135dd51f1d9989d8cbcbc4f9 (patch)
tree671e5fc16bcb307a66f17091b558f45016278079 /firmware/main.c
parent0594d9bfb2b3493952a03dcfed47e5647a83b489 (diff)
downloadmicronucleus-d2cb718727dbe19f135dd51f1d9989d8cbcbc4f9.tar.gz
micronucleus-d2cb718727dbe19f135dd51f1d9989d8cbcbc4f9.tar.bz2
micronucleus-d2cb718727dbe19f135dd51f1d9989d8cbcbc4f9.zip
firmware: added OSCCAL_HAVE_XTAL
Diffstat (limited to 'firmware/main.c')
-rw-r--r--firmware/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/main.c b/firmware/main.c
index aab826c..5381cee 100644
--- a/firmware/main.c
+++ b/firmware/main.c
@@ -259,7 +259,9 @@ int main(void) {
if (!--resetctr) { // reset encountered
usbNewDeviceAddr = 0; // bits from the reset handling of usbpoll()
usbDeviceAddr = 0;
+#if (OSCCAL_HAVE_XTAL == 0)
calibrateOscillatorASM();
+#endif
}
if (USB_INTR_PENDING & (1<<USB_INTR_PENDING_BIT)) {