Subversion Repositories eon

Compare Revisions

Ignore whitespace Rev 70 → Rev 71

/emg_install.sh
6,7 → 6,6
user="emg"
 
echo $program
exit 0
 
if getent group $group > /dev/null; then
echo "emg group already exists."
22,8 → 21,8
echo "emg user has been created (no shell)."
fi
 
#./configure --prefix=$prefix
#make install
./configure --prefix=$prefix
make install
 
ln -sf $prefix/etc/init.d/$program.sh /etc/init.d/$program.sh
cd $prefix/etc/init.d; update-rc.d $program.sh defaults
/src/main.c
360,6 → 360,7
 
void main_loop(void)
{
int ret;
ESP3_Packet pkt = {0};
ID_RFT rft = {0};
uint32_t sender_id;
366,7 → 367,11
uint32_t data;
// Open serial port
serial_open("/dev/ttyUSB0");
ret = serial_open("/dev/ttyUSB0");
if(ret < 0)
{
exit(-1);
}
 
// Loop
while(1)
390,5 → 395,10
}
// Close serial port
serial_close();
ret = serial_close();
if(ret < 0)
{
exit(-1);
}
}