修复编译错误

onereq
Matthew 3 months ago
parent 22bc6af87c
commit bae16b9427

@ -532,11 +532,11 @@ Java_com_xypower_mpapp_MicroPhotoService_sendHeartbeat(
{
time_t ts = time(NULL);
int ldr = GpioControl::getLightAdc();
char buf[64] = { 0 };
snprintf(buf, sizeof(buf), "%s %d\r\n", FormatLocalDateTime(ts).c_str(), ldr);
appendFile("/sdcard/com.xypower.mpapp/tmp/ldr.txt", buf, strlen(buf));
appendFile("/sdcard/com.xypower.mpapp/tmp/ldr.txt", (const unsigned char* )buf, strlen(buf));
});

Loading…
Cancel
Save