sync sensor_nodepower.c from master