-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
239 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#ifndef AR_CONFIG_H_ | ||
#define AR_CONFIG_H_ | ||
|
||
#include <stdbool.h> | ||
|
||
|
||
// connected, receiving ACK | ||
// status, status from RS485 (on & generating are same status) | ||
// Percent > 0 & status = 0 to generating. | ||
// Percent = 0 & status = 0x00 change status to 0xFF (off) | ||
|
||
struct apdata | ||
{ | ||
int PPM; | ||
int Percent; | ||
int last_generating_percent; | ||
int default_percent; | ||
//bool generating; | ||
bool boost; | ||
unsigned char status; | ||
//unsigned char last_status_published; | ||
bool connected; | ||
char *cache_file; | ||
bool changed; | ||
}; | ||
|
||
|
||
bool set_SWG_percent(int percent); | ||
|
||
void write_cache(struct apdata *ar_prms); | ||
void read_cache(struct apdata *ar_prms); | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.