Commit 64bb037d authored by claes's avatar claes

Message text is empty for zero sts

parent fd865137
......@@ -2159,6 +2159,9 @@ JNIEXPORT jobject JNICALL Java_jpwr_rt_Gdh_getMsgText
status = (pwr_tStatus) sts;
if ( status == 0)
strcpy( buf, "");
else
msg_GetText( status, buf, sizeof(buf));
jbuf = (*env)->NewStringUTF( env, buf);
......
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