Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: rohm-rpr0521-hello rohm-tileshield-6sensor-demo rohm-SensorShield-example PMK_industrija_mikro1 ... more
Revision 2:56d144605997, committed 2019-02-18
- Comitter:
 - Ren Boting
 - Date:
 - Mon Feb 18 16:41:56 2019 +0900
 - Parent:
 - 1:145f11782373
 - Commit message:
 - fix IAR toolchain compilation failure.
 
Changed in this revision
| source/rpr0521_driver.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- 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{
    
            Rohm RPR-0521RS | Light & Proximity Sensor