added 3x sleep(1)

pull/116/head
alanbjohnston 5 years ago committed by GitHub
parent 4ec37242cd
commit 75606058f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1160,8 +1160,6 @@ else {
const char space[2] = " ";
token = strtok(cmdbuffer, space);
for (count1 = 0; count1 < 8; count1++) {
if (token != NULL) {
voltage[count1] = (float) atof(token);
@ -1183,6 +1181,9 @@ else {
// printf("\n");
sleep(1);
printf("Sleep over\n");
batteryVoltage = voltage[map[BAT]];
if (batteryVoltage < 3.5) {
NormalModeFailure = 1;
@ -1347,6 +1348,9 @@ else {
fclose(uptime_file);
printf("Reset Count: %d Uptime since Reset: %ld \n", reset_count, uptime);
sleep(1);
printf("Sleep over\n");
h[0] = (short int) ((h[0] & 0xf8) | (id & 0x07)); // 3 bits
// printf("h[0] %x\n", h[0]);
h[0] = (short int) ((h[0] & 0x07) | ((reset_count & 0x1f) << 3));
@ -1533,6 +1537,9 @@ else {
*/
#endif
sleep(1);
printf("Sleep over\n");
int ctr2 = 0;
memset(data10, 0, sizeof(data10));

Loading…
Cancel
Save

Powered by TurnKey Linux.