Commit f996c02d authored by 957dd's avatar 957dd

Update mqtt.c

parent 91eeaa51
......@@ -155,7 +155,7 @@ void message_3(cJSON *body,cJSON *pwm_ctrl)//message_type为3,控制pwm
cJSON *val = cJSON_GetObjectItem(pwm_ctrl, "val"); //val为pwm的值 0~100(unsigned char)(unsigned char)
gmodeTemp= mode->valueint;
gtypeTemp=type->valueint;
gvalTemp= val->valueint*3/4;
gvalTemp= val->valueint;
if(gtypeTemp==3)
{
gvalTemp= val->valueint;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment