There is currently 1 post.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
1153 0
powerlog2.4温度数据存储故障已修复
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 2/6/17 17:22
新版本powerlog2.5,主要改动:
printf("Powerlog Version 2.5\n");

Makefile:
MYSQL = -L/usr/lib64/mysql -lmysqlclient

temperature.c:
UART_Receive(buffer, 4);

UART.h:
int UART_Receive(unsigned char *buf, int len);

UART.c:
int UART_Receive(unsigned char *buf, int len)
{
    int n, cnt;
    memset(buf, 0, len);
    for (cnt = 0; cnt < len; cnt += n)
    {
        n = read(UART_id, buf + cnt, len - cnt);
        if (n == 0)
            break;
    }
    return cnt;
}
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 1153 Replies: 0
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 2/6/17 17:22
Bar Hot Posts
Bar Good Posts
Announcements