sdasd

Revision:
2:56d144605997
Parent:
1:145f11782373
diff -r 145f11782373 -r 56d144605997 source/rpr0521_driver.cpp
--- a/source/rpr0521_driver.cpp	Tue Sep 20 11:15:09 2016 +0000
+++ b/source/rpr0521_driver.cpp	Mon Feb 18 16:41:56 2019 +0900
@@ -33,7 +33,7 @@
         DEBUG_printf("Manufacturer: %u\n\r", id);
         read_bytes = read_register(SAD, RPR0521_SYSTEM_CONTROL, &partid, 1);
         if ( read_bytes > 0 ){
-            DEBUG_printf("Part ID: %u\n\r", (partid & 0b00111111) );
+            DEBUG_printf("Part ID: %u\n\r", (partid & 0x3f) );
         return(partid);
         }
         else{