Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Updates for Arduino 1.0+ #6

Open
wants to merge 2 commits into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 2, 2013
  1. @sciguy14
Commits on Jan 3, 2013
  1. @sciguy14

    WiServer syntax update

    sciguy14 authored
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 5 deletions.
  1. +2 −2 WiServer.cpp
  2. +1 −1  WiServer.h
  3. +1 −1  WiShield.cpp
  4. +1 −1  clock-arch.c
View
4 WiServer.cpp
@@ -35,7 +35,7 @@
*****************************************************************************/
-#include "WProgram.h"
+#include "arduino.h"
#include "WiServer.h"
extern "C" {
@@ -211,7 +211,7 @@ void Server::printTime(long t) {
/*
* Writes a byte to the virtual buffer for the current connection
*/
-void Server::write(uint8_t b) {
+size_t Server::write(uint8_t b) {
// Make sure there's a current connection
if (uip_conn) {
View
2  WiServer.h
@@ -195,7 +195,7 @@ class Server: public Print
/**
* Writes a single byte to the current connection buffer
*/
- virtual void write(uint8_t);
+ virtual size_t write(uint8_t);
/**
* Prints a string that is stored in program memory
View
2  WiShield.cpp
@@ -43,7 +43,7 @@ extern "C" {
void stack_process(void);
}
-#include "WProgram.h"
+#include "arduino.h"
#include "WiShield.h"
boolean WiShield::init(U8 seconds)
View
2  clock-arch.c
@@ -41,7 +41,7 @@
#include <avr/sfr_defs.h>
#include "clock-arch.h"
-#include "wiring.h"
+#include "arduino.h"
#if 0
//Counted time
Something went wrong with that request. Please try again.