added current limit

tested on devboard