Skip to content

Commit

Permalink
V 2.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
felias-fogg committed Nov 10, 2021
1 parent a4ed238 commit e9f3593
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/LibraryBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ jobs:
include:
- arduino-boards-fqbn: digistump:avr:digispark-tiny:clock=clock1 # ATtiny85 board @1 MHz
platform-url: https://raw.githubusercontent.com/ArminJo/DigistumpArduino/master/package_digistump_index.json
sketches-exclude: hardi2c,stretchTest,I2Cshell,EepromFill
sketches-exclude: hardi2c,stretchTest,I2CShell,EepromFill

- arduino-boards-fqbn: digistump:avr:digispark-pro
platform-url: https://raw.githubusercontent.com/ArminJo/DigistumpArduino/master/package_digistump_index.json
sketches-exclude: hardi2c,stretchTest,I2Cshell
sketches-exclude: hardi2c,stretchTest,I2CShell

- arduino-boards-fqbn: ATTinyCore:avr:attinyx5:chip=85,clock=1internal
platform-url: http://drazzy.com/package_drazzy.com_index.json
sketches-exclude: hardi2c,stretchTest,I2Cshell
sketches-exclude: hardi2c,stretchTest,I2CShell

# Do not cancel all jobs / architectures if one job fails
fail-fast: false
Expand Down
16 changes: 11 additions & 5 deletions examples/I2CShell/I2CShell.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,21 @@
* V 1.1 (11-Feb-18)
* - line editing added
* - documentation completed
* V 1.2 (12-Feb)
* V 1.2 (12-Feb-18)
* - changed the implementation of kill-rest-of-line
* - added line number for T-command
* - allowed now for 700 kHz as the maximum bus clock; works perfect, but
* you definitely need low pullup resistors, the internal ones won't
* work at this speed.
* - some cleanup for the T command
* V 1.3 (10-Nov-21)
* - removed some unused variables
* - fixed a if-condition from (token = NUM_TOK) to (token == NUM_TOK) line 677
*/

#define VERSION "1.3"

// Something you have to edit!
#define USEEEPROM 1
#define I2C_HARDWARE 0

Expand Down Expand Up @@ -213,7 +218,7 @@ void loop()
bool readLine(char *buf)
{
char next = '\0';
int i = 0, fill = 0, j;
int i = 0, fill = 0;

while (next != '\r' && next != '\n') {
while (!Serial.available());
Expand Down Expand Up @@ -665,16 +670,15 @@ void execute(exec_t *cmds, byte *vals)
void report(char *line, exec_t *cmds, byte *vals)
{
int i = 0;
bool ack, nostart;
byte readval;
bool nostart;
int startline = 0;
int stopline = 0;
long val;
int ix = 1;
token_t token;
if (strlen(line) > 1) {
token = nextToken(line, ix, val);
if (token = NUM_TOK) {
if (token == NUM_TOK) {
startline = val;
stopline = startline + 19;
}
Expand Down Expand Up @@ -843,7 +847,9 @@ void frequency(char *line)
token_t token;
long value;
int ix = 1;
#if I2C_HARDWARE
int bitrate;
#endif

token = nextToken(line, ix, value);
if (token != NUM_TOK) {
Expand Down

0 comments on commit e9f3593

Please sign in to comment.