Remove incorrect PROGMEM qualifier on the Manufacturer string descriptors in the...
[pub/USBasp.git] / LUFA / Drivers / USB / Core / StdDescriptors.h
index c46129c..1056f0f 100644 (file)
                        /** \name USB Configuration Descriptor Attribute Masks */
                        //@{
                        /** Mask for the reserved bit in the Configuration Descriptor's \c ConfigAttributes field, which must be set on all
-                        *  devices for historial purposes.
+                        *  devices for historical purposes.
                         */
                        #define USB_CONFIG_ATTR_RESERVED          0x80
 
                /* Macros: */
                        #define VERSION_TENS(x)                   (int)((int)(x) / 10)
                        #define VERSION_ONES(x)                   (int)((int)(x) % 10)
-                       #define VERSION_TENTHS(x)                 (int)(((x *  1) - ((int)(x *  1))) * 10)
-                       #define VERSION_HUNDREDTHS(x)             (int)(((x * 10) - ((int)(x * 10))) * 10)
+                       #define VERSION_TENTHS(x)                 (int)((x - (int)x) * 10)
+                       #define VERSION_HUNDREDTHS(x)             (int)((x * 100) - ((int)(x * 10) * 10))
        #endif
 
        /* Disable C linkage for C++ Compilers: */