]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - hantek_6022be.c
license: remove FSF postal address from boiler plate license text
[sigrok-firmware-fx2lafw.git] / hantek_6022be.c
index a62280d63dceed093070458b3413be0ced73db41..dfd3522650480908145ab18d0fe8f1af14a1305e 100644 (file)
@@ -15,8 +15,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #include <fx2macros.h>
@@ -421,7 +420,7 @@ static void main(void)
 
        /* Init timer2. */
        RCAP2L = -500 & 0xff;
-       RCAP2H = (-500 >> 8) & 0xff;
+       RCAP2H = (-500 & 0xff00) >> 8;
        T2CON = 0;
        ET2 = 1;
        TR2 = 1;