Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
Digispark-tiny warnings fix (#25)
Browse files Browse the repository at this point in the history
* Resolve a conflict with BIN macro.

* Update obsolete include <avr/delay.h>.
  • Loading branch information
leonty authored and ivankravets committed Sep 9, 2019
1 parent 8416e5b commit 97d211c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions cores/digispark_tiny/Print.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@

#include "WString.h"

#define DEC 10
#define HEX 16
#define OCT 8
#define BIN 2
#define BYTE 0
const int BASE_DEC = 10;
const int BASE_HEX = 16;
const int BASE_OCT = 8;
const int BASE_BIN = 2;
const int BASE_BYTE = 0;

#define ARDUINO_CORE_PRINTABLE_SUPPORT

Expand Down Expand Up @@ -76,23 +76,23 @@ class Print

void print(const String &);
void print(const char[]);
void print(char, int = BYTE);
void print(unsigned char, int = BYTE);
void print(int, int = DEC);
void print(unsigned int, int = DEC);
void print(long, int = DEC);
void print(unsigned long, int = DEC);
void print(char, int = BASE_BYTE);
void print(unsigned char, int = BASE_BYTE);
void print(int, int = BASE_DEC);
void print(unsigned int, int = BASE_DEC);
void print(long, int = BASE_DEC);
void print(unsigned long, int = BASE_DEC);
void print(double, int = 2);
int print( fstr_t* );

void println(const String &s);
void println(const char[]);
void println(char, int = BYTE);
void println(unsigned char, int = BYTE);
void println(int, int = DEC);
void println(unsigned int, int = DEC);
void println(long, int = DEC);
void println(unsigned long, int = DEC);
void println(char, int = BASE_BYTE);
void println(unsigned char, int = BASE_BYTE);
void println(int, int = BASE_DEC);
void println(unsigned int, int = BASE_DEC);
void println(long, int = BASE_DEC);
void println(unsigned long, int = BASE_DEC);
void println(double, int = 2);
int println( fstr_t* );
int println(void);
Expand Down
2 changes: 1 addition & 1 deletion cores/digispark_tiny/wiring_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/delay.h>
#include <util/delay.h>
#include <stdio.h>
#include <stdarg.h>

Expand Down

0 comments on commit 97d211c

Please sign in to comment.