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.
Dependencies: ESP8266 Servo TextLCD mbed
Fork of ACS712HelloWorldDemo by
Diff: ACS712.h
- Revision:
- 2:2b5233355986
- Parent:
- 1:4f9effb20c29
- Child:
- 3:9cae7baf7ccd
diff -r 4f9effb20c29 -r 2b5233355986 ACS712.h
--- a/ACS712.h Sun Mar 13 16:43:23 2016 +0000
+++ b/ACS712.h Sun Mar 13 16:51:20 2016 +0000
@@ -19,7 +19,7 @@
ACS712::ACS712(PinName _pin, float voltDivRatio, short type) : sensor(_pin){
ratio = voltDivRatio;
- type = type;
+ this.type = type;
}
float ACS712::translate(float val){
